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:
ondrej 2016-01-25 22:15:26 +00:00
parent 468a5a31d3
commit 86b7cdb5d3

View File

@ -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