Bug #63647 Ctrl-S Saves mwb file instead of SQL script even when focus is on SQL editor.
Submitted: 7 Dec 2011 13:22 Modified: 7 Dec 2011 15:05
Reporter: Robert Corley Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.34 CE OS:Microsoft Windows (Haven't tested on any other OS)
Assigned to: CPU Architecture:Any
Tags: Ctrl-S, save

[7 Dec 2011 13:22] Robert Corley
Description:
When editing an SQL script in the SQL editor with an EER diagram open in another tab, using ctrl-s saves the mwb file, not the SQL script.

If you use the save button on the toolbar in the SQL editor then it correctly saves the SQL script.

Only happens if you open the EER model before editing an SQL script.

How to repeat:
1. Open Workbench
2. Open any EER model (let say example.mwb)
3. Go back to the home tab and open a database connection from the left hand pane
4. Now open an SQL script (File > Open SQL script)
5. Edit the script and now try saving using the shortcut (Ctrl-S)
6. The statusbar at the bottom will say 'path\example.mwb saved' when it should actually be saving the SQL script that you are focused on.

This bug only happens if you open the EER model first
[7 Dec 2011 14:04] Valeriy Kravchuk
Please, check if the same problem still happens with a newer version, 5.2.36.
[7 Dec 2011 14:43] Robert Corley
My sincere apologies - it has been fixed in the newer version. Many thanks!
[7 Dec 2011 15:05] Valeriy Kravchuk
Not repeatable with 5.2.36.