Menu

#129 Rename Components: Empty List of "Other Properties" is not saved

Closed
closed-fixed
5
2019-07-15
2019-07-14
Achim Kalwa
No

The "Other Properties" list in the Rename Components Configuration is not saved if the list is empty.

Steps:

  • Click GExperts -> Configuration -> Rename Components -> Configuration
  • In the list, select TAction
  • click "Other Properites"
  • remove all text from the memo and click OK.
  • close all dialogs by clicking OK
  • Close the Delphi IDE
  • Restart the Delphi IDE
  • open Rename Components Configuration, select TAction

Expected: The list of "Other Propertied" is empty
Actually: The list still contains the default "Caption = ''"

This is caused by TCompRenameExpert.InternalSaveSettings: If OtherProps is not assigned, the existing configuration data is not touched at all. To fix this, the existing sub-section must be deleted.

Patch attached.

1 Attachments

Discussion

  • Thomas Mueller

    Thomas Mueller - 2019-07-15
    • status: open --> closed-fixed
    • Group: New --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 2019-07-15

    Thanks. Patch applied as revision #2678

     

Log in to post a comment.