mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 16:39:19 +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
|
for i := 0 to OrderedComps.Count-1 do
|
||||||
begin
|
begin
|
||||||
Comp := IDEComponentPalette.FindComponent(OrderedComps[i]);
|
Comp := IDEComponentPalette.FindComponent(OrderedComps[i]);
|
||||||
Assert(Assigned(Comp), 'TCompPaletteOptionsFrame.InitialComps: Component "'+
|
if Assigned(Comp) and Comp.Visible then
|
||||||
OrderedComps[i]+'" not found');
|
|
||||||
if Comp.Visible then
|
|
||||||
aCompList.AddObject(Comp.ComponentClass.ClassName, Comp);
|
aCompList.AddObject(Comp.ComponentClass.ClassName, Comp);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user