RxFPC:RxToolbar - fix loading old config files

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6780 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
alexs75 2019-01-05 21:22:47 +00:00
parent c0008d94c7
commit ae0b11dfa8

View File

@ -985,6 +985,7 @@ var
begin
ACount:=FPropertyStorageLink.Storage.ReadInteger(ASection+sCount, -1);
if ACount < 0 then Exit(false);
FVisibleItems.Clear;
Result:=true;
S:=ASection+sItem;
St:=TStringList.Create;
@ -1043,6 +1044,7 @@ begin
S:=ASection;
FCnt:=FPropertyStorageLink.Storage.ReadInteger(S+sVersion2, FVersion);
if FCnt < FVersion then Exit;
FVisibleItems.Clear;
for P in Items do P.Visible:=false;
St:=TStringList.Create;
FCnt:=FPropertyStorageLink.Storage.ReadInteger(S+sCount, 0);
@ -1105,7 +1107,6 @@ var
begin
S:=Owner.Name+'.'+Name;
ACount:=FPropertyStorageLink.Storage.ReadInteger(S+sVersion2, -9999); //Check cfg version
FVisibleItems.Clear;
Items.BeginUpdate;
if ACount = -9999 then