IDE: Confirmation before executing the "File" > "Close All" command
Based on the forum topic: https://forum.lazarus.freepascal.org/index.php?topic=66373
- Lazarus/FPC Version: trunk
- Operating System: all
- CPU / Bitness: all
What happens
An attempt to close a project via the menu item File > Close All results in all editor windows "disappearing" the next time the project is opened.
The thing is that this menu item simply closes the code editor windows, and this state is saved in the project session.
What did you expect
The expected behavior for many users is to close the project, not the editor windows.
In Delphi this menu item closes the project, and many of its users try to use this function in Lazarus.
Patch
The patch adds confirmation before performing the operation. The message explicitly states that only the editor windows will be closed, not the project. Also indicates how to close the project (surely this is what users wanted).
Patch for trunk: closeall_confirm.patch.