mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:20:49 +00:00
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:
parent
71aa65b056
commit
caadcead7d
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue