mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 09:38:13 +02:00
ideintf: menuintf: update current section even if the sections in front need update.
Solves issue #29311 and probably also a lot of different "TIDEMenuSection.UpdateNeedTopSeparator inconsistency" issues. git-svn-id: trunk@51418 -
This commit is contained in:
parent
468a5a31d3
commit
86b7cdb5d3
@ -1091,8 +1091,9 @@ begin
|
||||
debugln('TIDEMenuSection.UpdateMenuStructure Front Section="',Section.Name,'" Name="',Name,'" Section.Invalid=',dbgs(Section.FInvalidChildStartIndex),'..',dbgs(Section.FInvalidChildEndIndex),' Count=',dbgs(Count),' SectionIndex=',dbgs(SectionIndex));
|
||||
{$ENDIF}
|
||||
Section.UpdateMenuStructure;
|
||||
end else if FInvalidChildStartIndex<Count then begin
|
||||
// the sections in front are uptodate
|
||||
end;
|
||||
// the sections in front are now uptodate, lets continue updating the current section
|
||||
if FInvalidChildStartIndex<Count then begin
|
||||
ContainerMenuItem:=GetContainerMenuItem;
|
||||
if ChildrenAsSubMenu then
|
||||
ContainerMenuIndex:=0
|
||||
|
Loading…
Reference in New Issue
Block a user