Changeset 9095


Ignore:
Timestamp:
Sep 11, 2009, 3:15:04 AM (13 years ago)
Author:
livings124
Message:

the quick look window shouldn't zoom onto a missing window when quitting

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9055 r9095  
    662662    //remember window states and close all windows
    663663    [fDefaults setBool: [[fInfoController window] isVisible] forKey: @"InfoVisible"];
    664     [[NSApp windows] makeObjectsPerformSelector: @selector(close)];
     664   
     665    const BOOL quickLookOpen = [NSApp isOnSnowLeopardOrBetter] && [QLPreviewPanel sharedPreviewPanelExists]
     666                                && [[QLPreviewPanel sharedPreviewPanel] isVisible];
     667    for (NSWindow * window in [NSApp windows])
     668    {
     669        if (!quickLookOpen || window != [QLPreviewPanel sharedPreviewPanel]) //hide quicklook window last to avoid animation
     670            [window orderOut: nil];
     671    }
     672   
     673    [[QLPreviewPanel sharedPreviewPanel] updateController];
     674    [[QLPreviewPanel sharedPreviewPanel] orderOut: nil];
     675   
    665676    [self showStatusBar: NO animate: NO];
    666677    [self showFilterBar: NO animate: NO];
  • trunk/macosx/TorrentTableView.m

    r9057 r9095  
    502502        [fController focusFilterField];
    503503    else if (firstChar == ' ')
    504         [fController toggleQuickLook: self];
     504        [fController toggleQuickLook: nil];
    505505    else
    506506        [super keyDown: event];
Note: See TracChangeset for help on using the changeset viewer.