Changeset 9721


Ignore:
Timestamp:
Dec 12, 2009, 2:28:27 AM (12 years ago)
Author:
livings124
Message:

better handling of revealing the main window when the dock is clicked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

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