Fix part of registry key RecentFilters showing up in perspectives menu.

This commit is contained in:
Ansgar Becker
2009-01-28 19:57:19 +00:00
parent bfa3189188
commit c7a394748c

View File

@ -8400,8 +8400,13 @@ begin
OpenRegistry;
if MainReg.OpenKey(GetRegKeyTable, False) then begin
MainReg.GetKeyNames(List);
for i := 0 to List.Count - 1 do
List[i] := Copy(List[i], Length(REGPREFIX_DATAVIEW)+1, Length(List[i]));
for i := List.Count - 1 downto 0 do begin
logsql(Copy(List[i], 0, Length(REGPREFIX_DATAVIEW)));
if Copy(List[i], 0, Length(REGPREFIX_DATAVIEW)) <> REGPREFIX_DATAVIEW then
List.Delete(i)
else
List[i] := Copy(List[i], Length(REGPREFIX_DATAVIEW)+1, Length(List[i]));
end;
end;
end;