"Close all editor files" cannot be cancelled if there are unsaved changes
Original Reporter info from Mantis: jonas@freepascal.org
-
Reporter name: Jonas Maebe
Original Reporter info from Mantis: jonas@freepascal.org
- Reporter name: Jonas Maebe
Description:
Summary
Actions resulting in data loss should always be cancellable at every prompt, resulting in no changes for the current choice and all those that would still come after it. If you choose "Close all editor files" and then click cancel when asked to save an unsaved file, you however lose all changes.
Steps to reproduce
- start Lazarus so it opens a default new project
- choose File -> Close all editor files
- click the "cancel" button in the dialog box that appears
Expected results
* after step 3, nothing should happen, i.e., the not yet closed windows should remain open and no unsaved but changed files should be lost
Actual results
* after step 3, the file is closed and the changes are lost
Notes
The dialog box should provide three buttons: Save, Don't Save, and Cancel. Save saves the file, Don't Save does not save it, and Cancel aborts the action and returns you to the IDE with everything as it was before.
You can choose whether you first start processing all documents with changes (so that if one of those is cancelled, the unchanged documents are still open), or whether you process them in an arbitrary order (so that it's possible that if you cancel somewhere in the middle, some unchanged documents may already have been closed and the user has to reopen them). The first method is slightly nicer for users, in general.
Mantis conversion info:
- Mantis ID: 12298
- OS: Mac OS X
- OS Build: 10.5.4
- Build: 16874
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 28459 (#2ee2cee2)
- Monitored by: » jonas@freepascal.org (Jonas Maebe)
- Target version: 1.0.0
- LazTarget: 1.0