andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Data loss possibility #192

Closed bjones1 closed 10 years ago

bjones1 commented 10 years ago

If I create a new document, type a few characters, press ctrl+W to close, click save, then press esc (I changed my mind -- I don't want to save it now, so I'll do it later), then the file is closed. I'd expect an esc from the save file dialog to act like a cancel, not a discard.

andreikop commented 10 years ago

Fixed. Covered 3 UISaveFiles buttons with tests. This case is not covered with a test. It seems like QtTest doesn't work with native save dialog.