mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 17:00:57 +02:00
don't add submenu if already added
git-svn-id: trunk@5281 -
This commit is contained in:
parent
8f6882a494
commit
1b5ee8830a
@ -780,7 +780,7 @@ end;
|
||||
// ------------------------------------------------------------//
|
||||
procedure TDesignerMainMenu.AddSubMenuClick(Sender: TObject);
|
||||
begin
|
||||
AddSubMenu(Root, SelectedDesignerMenuItem);
|
||||
if AddSubMenu(Root, SelectedDesignerMenuItem)=nil then exit;
|
||||
SetCoordinates(POSITION_LEFT, POSITION_TOP, 0, Root);
|
||||
Parent.Invalidate;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user