Bug #45619 Overwrite existing file dialog - replace/cancel buttons are reversed
Submitted: 19 Jun 2009 15:06 Modified: 25 Jun 2009 16:50
Reporter: Craig Fowler Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.1.13 OS:Linux (Kubuntu Jaunty using .deb installer)
Assigned to: Maksym Yehorov CPU Architecture:Any

[19 Jun 2009 15:06] Craig Fowler
Description:
When faced with a "do you want to overwrite an existing .sql file" dialog/confirmation, the replace and cancel buttons have a reversed effect.  Clicking "replace" will cancel the action, clicking "cancel" will take you along to the next step.

I have spotted this in:

File » Export » Forward Engineer Create Script

How to repeat:
NOTE:  I can only replicate this in my Linux environment.  I just tried it in WinXP and couldn't even get a "you are about to overwrite an existing file" confirmation dialog.

Steps to replicate
------------------
Create a project, export it as a SQL create script using:

File » Export » Forward Engineer Create Script

Choose a save location that will result in overwriting an existing .sql file.

Click next and you will be presented with a "You are about to overwrite an existing file" dialog which prompts you to replace or cancel.

Suggested fix:
Swap 'em!
[21 Jun 2009 18:08] Valeriy Kravchuk
Thank you for the problem report. Verified just as described.
[23 Jun 2009 10:36] Maksym Yehorov
Fixed in rev #4164
[23 Jun 2009 15:59] Johannes Taxacher
thats been fixed in repository. fix will be included in 5.1.15
[25 Jun 2009 16:50] Tony Bedford
An entry was added to the 5.1.15 changelog:

The File, Export, Forward Engineer SQL CREATE Script wizard contained malfunctioning buttons. When prompted with the message “Do you want to overwrite an existing .sql file?”, the Replace and Cancel buttons had the reverse effect. Clicking Replace cancelled the action, whereas clicking Cancel proceeded to the next step.