Packager: Assert that TPackageEditorForm.TraverseSettings really is obsolete.

git-svn-id: trunk@63895 -
This commit is contained in:
juha 2020-09-20 09:56:33 +00:00
parent 2fdd890e2c
commit f9814634a0

View File

@ -3427,23 +3427,23 @@ procedure TPackageEditorForm.TraverseSettings(AOptions: TAbstractPackageFileIDEO
if Control <> nil then if Control <> nil then
begin begin
if Control is TAbstractIDEOptionsEditor then if Control is TAbstractIDEOptionsEditor then
begin
Assert(False,'TPackageEditorForm.TraverseSettings: IDEOptionsEditor found under PropsPageControl');
with TAbstractIDEOptionsEditor(Control) do with TAbstractIDEOptionsEditor(Control) do
begin case anAction of
case anAction of
iodaRead: ReadSettings(AOptions); iodaRead: ReadSettings(AOptions);
iodaWrite: WriteSettings(AOptions); iodaWrite: WriteSettings(AOptions);
iodaRestore: RestoreSettings(AOptions); iodaRestore: RestoreSettings(AOptions);
end;
end; end;
end;
for i := 0 to Control.ControlCount -1 do for i := 0 to Control.ControlCount -1 do
if Control.Controls[i] is TWinControl then if Control.Controls[i] is TWinControl then
begin
Traverse(TWinControl(Control.Controls[i])); Traverse(TWinControl(Control.Controls[i]));
end;
end; end;
end; end;
begin begin
DebugLn(['TPackageEditorForm.TraverseSettings: AOptions=', AOptions, ', Action=', anAction]);
Traverse(PropsPageControl); Traverse(PropsPageControl);
end; end;