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:
nico 2002-02-20 23:10:15 +00:00
parent b5dad7bf50
commit 296bb40b30

View file

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