Menu handling fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16152 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-03-08 07:09:33 +00:00
parent f1de0e1216
commit aff8b096b9
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-03-07 Willem Rein Oudshoorn <woudshoo@xs4all.nl>
* Source/NSMenu.m: ([-_updateUserDefaults:]) Do not store location
for attached menus.
2003-03-07 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSMenu.m: ([-_updateUserDefaults:]) restore saved menu

View file

@ -214,7 +214,8 @@ static NSNotificationCenter *nc;
defaults = [NSUserDefaults standardUserDefaults];
menuLocations = [[defaults objectForKey: NSMenuLocationsKey] mutableCopy];
if ([_aWindow isVisible])
if ([_aWindow isVisible]
&& ([self isTornOff] || ([NSApp mainWindow] == self)))
{
if (menuLocations == nil)
{