Changeset 9286


Ignore:
Timestamp:
Oct 11, 2009, 3:06:59 AM (13 years ago)
Author:
livings124
Message:

apparently applicationShouldHandleReopen:hasVisibleWindows:'s visibleWindows only counts the windows we care about already

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9285 r9286  
    622622- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
    623623{
    624     if (visibleWindows)
    625     {
    626         for (NSWindow * window in [NSApp windows])
    627             if ([window isVisible] && [window canBecomeMainWindow])
    628                 return NO;
    629     }
    630    
    631     [fWindow makeKeyAndOrderFront: nil];
     624    if (!visibleWindows)
     625        [fWindow makeKeyAndOrderFront: nil];
    632626    return NO;
    633627}
Note: See TracChangeset for help on using the changeset viewer.