laz_xmlcf does not set Modified flag, if deleting node (last child) Can't set an option back to default value in Options dialog
Original Reporter info from Mantis: Maxim @ganmax
-
Reporter name: Maxim Ganetsky
Original Reporter info from Mantis: Maxim @ganmax
- Reporter name: Maxim Ganetsky
Description:
While working with Editor Colors options dialog I noticed that sometimes if I change some option back to default value it does not get saved.
Steps to reproduce:
-
Take my editoroptions.xml, place it to Lazarus settings directory and open Lazarus. Note that this file contains &LtPos;ahaWordGroup FrameStyle="slsDashed"/> line.
-
Go to IDE Options->Editor/Display/Colors tab.
-
Select Word-Brackets in its treeview and change its line style from dashed to normal.
-
Press OK.
SynEdit highlights will be correctly updated, but aforementioned line will not be removed from the file, while it should be (because "normal" is default line style). Of course after restarting the IDE highlights will be dashed again.
Mantis conversion info:
- Mantis ID: 17970
- OS: Windows
- OS Build: XP SP2
- Build: Lazarus 0.9.29 r28299 FPC 2.4.3
- Platform: Win32
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 28744 (#918efded)
- Target version: 0.9.30