mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 16:56:01 +02:00
Converter: Remove old items from config if they are removed from StringTree.
git-svn-id: trunk@25966 -
This commit is contained in:
parent
9a1b70b22a
commit
666532d672
@ -159,7 +159,7 @@ procedure SaveStringToStringTree(Config: TConfigStorage; const Path: string;
|
||||
var
|
||||
Node: TAVLTreeNode;
|
||||
Item: PStringToStringTreeItem;
|
||||
i: Integer;
|
||||
i, j: Integer;
|
||||
SubPath: String;
|
||||
begin
|
||||
Config.SetDeleteValue(Path+'Count',Tree.Tree.Count,0);
|
||||
@ -173,6 +173,10 @@ begin
|
||||
Node:=Tree.Tree.FindSuccessor(Node);
|
||||
inc(i);
|
||||
end;
|
||||
for j:=i to i+10 do begin
|
||||
SubPath:=Path+'Item'+IntToStr(j)+'/';
|
||||
Config.DeletePath(SubPath);
|
||||
end;
|
||||
end;
|
||||
|
||||
constructor TConvertSettings.Create(const ATitle: string);
|
||||
|
Loading…
Reference in New Issue
Block a user