mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 13:20:59 +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
b5dad7bf50
commit
296bb40b30
1 changed files with 4 additions and 2 deletions
|
@ -1947,8 +1947,10 @@ delegate.
|
||||||
|
|
||||||
if ([item target] == aWindow)
|
if ([item target] == aWindow)
|
||||||
{
|
{
|
||||||
[_windows_menu removeItem: item];
|
/*
|
||||||
break;
|
* If our menu item already exists we need not continue.
|
||||||
|
*/
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue