don't add submenu if already added

git-svn-id: trunk@5281 -
This commit is contained in:
micha 2004-03-07 12:33:47 +00:00
parent 8f6882a494
commit 1b5ee8830a

View File

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