Converter: Remove old items from config if they are removed from StringTree.

git-svn-id: trunk@25966 -
This commit is contained in:
juha 2010-06-08 12:53:48 +00:00
parent 9a1b70b22a
commit 666532d672

View File

@ -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);