mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 17:39:18 +02:00
menuintf: fix SetChildsAsSubMenu section bug
git-svn-id: trunk@20702 -
This commit is contained in:
parent
1a7372fe49
commit
5e0c647868
@ -1172,9 +1172,11 @@ end;
|
|||||||
constructor TIDEMenuSection.Create(const TheName: string);
|
constructor TIDEMenuSection.Create(const TheName: string);
|
||||||
begin
|
begin
|
||||||
inherited Create(TheName);
|
inherited Create(TheName);
|
||||||
FSize:=0;
|
FSize := 0;
|
||||||
FChildsAsSubMenu:=true;
|
FChildsAsSubMenu := True;
|
||||||
FItems:=TFPList.Create;
|
FNeedTopSeparator := False;
|
||||||
|
FNeedBottomSeparator := False;
|
||||||
|
FItems := TFPList.Create;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TIDEMenuSection.Destroy;
|
destructor TIDEMenuSection.Destroy;
|
||||||
@ -1484,6 +1486,10 @@ begin
|
|||||||
{$IFDEF VerboseMenuIntf}
|
{$IFDEF VerboseMenuIntf}
|
||||||
debugln('TIDEMenuSection.SetChildsAsSubMenu Name="',Name,'"');
|
debugln('TIDEMenuSection.SetChildsAsSubMenu Name="',Name,'"');
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
if AValue then
|
||||||
|
Section.UpdateSize(1)
|
||||||
|
else
|
||||||
|
Section.UpdateSize(-1);
|
||||||
Section.UpdateMenuStructure;
|
Section.UpdateMenuStructure;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user