mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 06:09:15 +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
|
var
|
||||||
Node: TAVLTreeNode;
|
Node: TAVLTreeNode;
|
||||||
Item: PStringToStringTreeItem;
|
Item: PStringToStringTreeItem;
|
||||||
i: Integer;
|
i, j: Integer;
|
||||||
SubPath: String;
|
SubPath: String;
|
||||||
begin
|
begin
|
||||||
Config.SetDeleteValue(Path+'Count',Tree.Tree.Count,0);
|
Config.SetDeleteValue(Path+'Count',Tree.Tree.Count,0);
|
||||||
@ -173,6 +173,10 @@ begin
|
|||||||
Node:=Tree.Tree.FindSuccessor(Node);
|
Node:=Tree.Tree.FindSuccessor(Node);
|
||||||
inc(i);
|
inc(i);
|
||||||
end;
|
end;
|
||||||
|
for j:=i to i+10 do begin
|
||||||
|
SubPath:=Path+'Item'+IntToStr(j)+'/';
|
||||||
|
Config.DeletePath(SubPath);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TConvertSettings.Create(const ATitle: string);
|
constructor TConvertSettings.Create(const ATitle: string);
|
||||||
|
Loading…
Reference in New Issue
Block a user