Previously, if the user exited the file browser dialog without saving the file (voluntarily, or due to I/O error), DME would still exit (or wipe out the watch model; depending on the case), causing unrecoverable data loss.
Test plan:
Launch DME.
Add a few watch entries to mark the model with unsaved changes.
Clear the watch list via the File > Clear the watch list action.
A confirmation dialog with the Cancel, No, and Yes options should appear.
Click Yes
Once the file browser dialog opens, close it without selecting a file (or choose a filepath where the user does not have write permissions).
Previous behavior: The watch list was wrongly cleared, without the user having saved it.
New behavior: The user gets back to DME, as if Cancel had been selected in the confirmation dialog.
Previously, if the user exited the file browser dialog without saving the file (voluntarily, or due to I/O error), DME would still exit (or wipe out the watch model; depending on the case), causing unrecoverable data loss.
Test plan:
Previous behavior: The watch list was wrongly cleared, without the user having saved it.
New behavior: The user gets back to DME, as if Cancel had been selected in the confirmation dialog.