Ignore:
Timestamp:
Dec 12, 2009, 2:39:31 AM (13 years ago)
Author:
livings124
Message:

better implementation of r9721

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9721 r9722  
    631631- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
    632632{
    633     for (NSWindow * window in [NSApp windows])
    634         if ([window isMainWindow] && [window isVisible])
    635             return NO;
    636    
    637     [fWindow makeKeyAndOrderFront: nil];
     633    NSWindow * mainWindow = [NSApp mainWindow];
     634    if (!mainWindow || ![mainWindow isVisible])
     635        [fWindow makeKeyAndOrderFront: nil];
     636   
    638637    return NO;
    639638}
Note: See TracChangeset for help on using the changeset viewer.