mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 20:20:29 +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);
|
procedure TDesignerMainMenu.AddSubMenuClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
AddSubMenu(Root, SelectedDesignerMenuItem);
|
if AddSubMenu(Root, SelectedDesignerMenuItem)=nil then exit;
|
||||||
SetCoordinates(POSITION_LEFT, POSITION_TOP, 0, Root);
|
SetCoordinates(POSITION_LEFT, POSITION_TOP, 0, Root);
|
||||||
Parent.Invalidate;
|
Parent.Invalidate;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user