mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 11:09:19 +02:00
IDE, fix compiling and some corruption on logging when VerboseMenuIntf directive is enabled
git-svn-id: trunk@51475 -
This commit is contained in:
parent
405f94df44
commit
f4900d9e51
@ -1313,7 +1313,10 @@ begin
|
||||
|
||||
FreeSeparators;
|
||||
|
||||
for i:=FItems.Count-1 downto 0 do TObject(FItems[i]).Free;
|
||||
for i:=FItems.Count-1 downto 0 do begin
|
||||
TObject(FItems[i]).Free;
|
||||
FItems[i] := nil;
|
||||
end;
|
||||
FItems.Clear;
|
||||
FChildMenuItemsCreated:=false;
|
||||
FVisibleCount:=0;
|
||||
@ -1502,7 +1505,8 @@ begin
|
||||
' ContainerIndex=',GetContainerIndex(false),
|
||||
' NeedSep:Top=',NeedTopSeparator,',Bottom=',NeedBottomSeparator,
|
||||
' Size=',dbgs(Size)]);
|
||||
for i:=0 to Count-1 do Items[i].WriteDebugReport(Prefix+' ',false);
|
||||
for i:=0 to Count-1 do
|
||||
if Items[i]<>nil then Items[i].WriteDebugReport(Prefix+' ',false);
|
||||
if MenuItemDebugReport and (MenuItem<>nil) then
|
||||
MenuItem.WriteDebugReport(Prefix);
|
||||
end;
|
||||
|
@ -3850,7 +3850,7 @@ begin
|
||||
// assign the root TMenuItem to the registered menu root.
|
||||
// This will automatically create all registered items
|
||||
{$IFDEF VerboseMenuIntf}
|
||||
DesignerPopupMenu.Items.WriteDebugReport('TSourceNotebook.BuildPopupMenu ');
|
||||
FDesignerPopupMenu.Items.WriteDebugReport('TSourceNotebook.BuildPopupMenu ');
|
||||
DesignerMenuRoot.ConsistencyCheck;
|
||||
{$ENDIF}
|
||||
DesignerMenuRoot.MenuItem := FDesignerPopupMenu.Items;
|
||||
|
@ -7041,7 +7041,7 @@ procedure TSourceNotebook.RemoveContextMenuItems;
|
||||
begin
|
||||
SrcEditMenuSectionFileDynamic.Clear;
|
||||
{$IFDEF VerboseMenuIntf}
|
||||
SrcEditMenuSectionFileDynamic.WriteDebugReport('TSourceNotebook.RemoveContextMenuItems ');
|
||||
SrcEditMenuSectionFileDynamic.WriteDebugReport('TSourceNotebook.RemoveContextMenuItems ', true);
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user