mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:39:28 +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
|
if AValue then
|
||||||
begin
|
begin
|
||||||
FVisible := AValue;
|
FVisible := AValue;
|
||||||
if (not (csLoading in ComponentState)) and Parent.HandleAllocated then
|
if (not (csLoading in ComponentState)) and (Parent<>nil)
|
||||||
|
and Parent.HandleAllocated then
|
||||||
HandleNeeded;
|
HandleNeeded;
|
||||||
if HandleAllocated then
|
if HandleAllocated then
|
||||||
TWSMenuItemClass(WidgetSetClass).SetVisible(Self, True);
|
TWSMenuItemClass(WidgetSetClass).SetVisible(Self, True);
|
||||||
|
Loading…
Reference in New Issue
Block a user