From aff8b096b963a298ed8ece68b4a7a9e048e9b164 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Sat, 8 Mar 2003 07:09:33 +0000 Subject: [PATCH] Menu handling fix git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16152 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSMenu.m | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 00dc821d6..f59766839 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-03-07 Willem Rein Oudshoorn + + * Source/NSMenu.m: ([-_updateUserDefaults:]) Do not store location + for attached menus. + 2003-03-07 Richard Frith-Macdonald * Source/NSMenu.m: ([-_updateUserDefaults:]) restore saved menu diff --git a/Source/NSMenu.m b/Source/NSMenu.m index 8c6faec1a..86e0a5a34 100644 --- a/Source/NSMenu.m +++ b/Source/NSMenu.m @@ -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) {