mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Minor optimization - if adding a windows menu entry which already exists,
simply do nothing git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12610 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d95eb2ac84
commit
dcc561fa70
1 changed files with 4 additions and 2 deletions
|
@ -1947,8 +1947,10 @@ delegate.
|
|||
|
||||
if ([item target] == aWindow)
|
||||
{
|
||||
[_windows_menu removeItem: item];
|
||||
break;
|
||||
/*
|
||||
* If our menu item already exists we need not continue.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue