Ignore:
Timestamp:
Oct 11, 2009, 2:50:13 AM (13 years ago)
Author:
livings124
Message:

applicationShouldHandleReopen:hasVisibleWindows: hardcoded a check for the main window and prefs window; now check for a visible main window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9283 r9285  
    622622- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
    623623{
    624     if (![fWindow isVisible] && ![[fPrefsController window] isVisible])
    625         [fWindow makeKeyAndOrderFront: nil];
     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];
    626632    return NO;
    627633}
Note: See TracChangeset for help on using the changeset viewer.