mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
IDE: Skip non-existent components when importing palette configuration.
git-svn-id: trunk@47221 -
This commit is contained in:
parent
eac1654958
commit
f6bbc53755
@ -309,9 +309,7 @@ begin
|
||||
for i := 0 to OrderedComps.Count-1 do
|
||||
begin
|
||||
Comp := IDEComponentPalette.FindComponent(OrderedComps[i]);
|
||||
Assert(Assigned(Comp), 'TCompPaletteOptionsFrame.InitialComps: Component "'+
|
||||
OrderedComps[i]+'" not found');
|
||||
if Comp.Visible then
|
||||
if Assigned(Comp) and Comp.Visible then
|
||||
aCompList.AddObject(Comp.ComponentClass.ClassName, Comp);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user