Bug #53848 No prompt to save unsaved changes
Submitted: 20 May 2010 10:41 Modified: 28 May 2010 14:15
Reporter: Daniel de Sybel Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.21 OSS OS:Windows (7)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: changes, save

[20 May 2010 10:41] Daniel de Sybel
Description:
1. Open up SQL Editor in Workbench
2. Type random characters
3. Close Workbench

No "You have unsaved changes" dialog comes up.

Same occurs if you have multiple tabs open and close a tab where changes have been made to an open file.

I know I'm a namby pamby Windows user but I've lost a few changes to files I've been working on by forgetting to save before closing. I will learn :-)

How to repeat:
See above.

Suggested fix:
Prompt user to save or discard unsaved changes when closing tabs or Workbench.
[20 May 2010 12:46] MySQL Verification Team
Thank you for the bug report.
[25 May 2010 17:57] Alfredo Kojima
Added save confirmation for SQL Scripts and recordsets when quitting WB
[26 May 2010 21:17] Johannes Taxacher
fix confirmed in repository
[28 May 2010 14:15] Tony Bedford
An entry has been added to the 5.2.22 changelog:

In the SQL Editor, if code was typed into the SQL Query tab, and then the application exited, MySQL Workbench did not prompt the user regarding unsaved changes, and so any code typed into the SQL Query tab, and not saved, was lost.