mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 09:38:12 +02:00
lcl: fixed setting TMenuItem.Visible without Parent
git-svn-id: branches/fixes_1_6@52916 -
This commit is contained in:
parent
b98b550355
commit
6b1eeb12fc
@ -1353,7 +1353,8 @@ begin
|
||||
if AValue then
|
||||
begin
|
||||
FVisible := AValue;
|
||||
if (not (csLoading in ComponentState)) and Parent.HandleAllocated then
|
||||
if (not (csLoading in ComponentState)) and (Parent<>nil)
|
||||
and Parent.HandleAllocated then
|
||||
HandleNeeded;
|
||||
if HandleAllocated then
|
||||
TWSMenuItemClass(WidgetSetClass).SetVisible(Self, True);
|
||||
|
Loading…
Reference in New Issue
Block a user