Bug #19086 Exporting SQL Script prompts for filename twice
Submitted: 13 Apr 2006 19:19 Modified: 26 Apr 2006 15:55
Reporter: John Yodsnukis (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Preview Severity:S3 (Non-critical)
Version:1.0.5beta svn revision 1235 OS:Linux (Linux (Gentoo on PPC))
Assigned to: Alfredo Kojima CPU Architecture:Any

[13 Apr 2006 19:19] John Yodsnukis
Description:
When exporting a model as a SQL Create script, the choose file name dialog is executed twice.

How to repeat:
1. Create a model.

2. From the menu bar, choose File | Export As | SQL Create Script.

You will be prompted for a file name for the script.  Give it one, say test.sql -- click "Ok" or "Cancel"... it doesn't matter.  You'll be prompted again for a file name.  This time it will take.

Suggested fix:
Make it prompt just once.  :)
[13 Apr 2006 20:43] MySQL Verification Team
Thank you for the bug report.
[22 Apr 2006 23:13] John Yodsnukis
The following statement appears twice in MWMainWindow.cc, at 812 AND 839:  _xml->get_menu_item("as_sql_create_script1")->signal_activate().connect(sigc::mem_fun(*this,&MWMainWindow::generate_script));

The solution is to remove or comment out one of them.
[26 Apr 2006 15:55] Alfredo Kojima
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html