SourceEditor: Close All Other Pages shows (unneccessary) confirmation dialog if active tab content is modified (patch attached)
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
When you want to close all other pages in the editor (right-click on tab and select appropriate item from contextmenu) and the current active pages' content is modified a confirmation dialog pops up: "Source of page "&LtPos;pagename>"has changed. Save?"
However, since we are NOT going to close this page, the dialog (and the question) is redundant, and confusing.
This check should only be performed for the actual pages we're about to close.
Steps to reproduce:
Start Lazarus.
Make sure you have at leat 2 (unmodified) pages open in the SE.
Make page 1 active.
Make some change to the content of page 1
Do not change the content of any of the other pages
Right-click on the tab of page 1
Select "Close All Other Pages"
The dialog will pop-up.
Mantis conversion info:
- Mantis ID: 22409
- OS: Window
- OS Build: Win7
- Build: r37908
- Platform: i386
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: r38666 (#e7c74ffd)