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:
Nicola Pero 2002-02-20 23:10:15 +00:00
parent d95eb2ac84
commit dcc561fa70

View file

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