Changeset 9301


Ignore:
Timestamp:
Oct 12, 2009, 12:19:04 AM (13 years ago)
Author:
livings124
Message:

don't zoom the QL window if the main window's closed

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9300 r9301  
    736736    [fAutoImportedNames release];
    737737    [fPendingTorrentDownloads release];
     738   
     739    [fPreviewPanel release];
    738740   
    739741    //complete cleanup
     
    15181520        [fInfoController close];
    15191521    else
    1520     {       
     1522    {
    15211523        [fInfoController updateInfoStats];
    15221524        [[fInfoController window] orderFront: nil];
     
    15241526        if ([fInfoController canQuickLook]
    15251527            && [QLPreviewPanelSL sharedPreviewPanelExists] && [[QLPreviewPanelSL sharedPreviewPanel] isVisible])
    1526         [[QLPreviewPanelSL sharedPreviewPanel] reloadData];
     1528            [[QLPreviewPanelSL sharedPreviewPanel] reloadData];
    15271529       
    15281530    }
     
    15331535    [fInfoController setInfoForTorrents: [fTableView selectedTorrents]];
    15341536   
    1535     if ([NSApp isOnSnowLeopardOrBetter] && [QLPreviewPanelSL sharedPreviewPanelExists] && [[QLPreviewPanelSL sharedPreviewPanel] isVisible])
     1537    if ([NSApp isOnSnowLeopardOrBetter] && [QLPreviewPanelSL sharedPreviewPanelExists]
     1538        && [[QLPreviewPanelSL sharedPreviewPanel] isVisible])
    15361539        [[QLPreviewPanelSL sharedPreviewPanel] reloadData];
    15371540}
     
    31873190    else
    31883191    {
     3192        if (![fWindow isVisible])
     3193            return NSZeroRect;
     3194       
    31893195        const NSInteger row = [fTableView rowForItem: item];
    31903196        if (row == -1)
  • trunk/macosx/InfoWindowController.m

    r9300 r9301  
    11461146- (BOOL) canQuickLook
    11471147{
    1148     if (fCurrentTabTag != TAB_FILES_TAG || ![[self window] isVisible] || ![NSApp isOnSnowLeopardOrBetter])
    1149         return NO;
    1150    
    1151     if ([fTorrents count] != 1)
     1148    if (fCurrentTabTag != TAB_FILES_TAG || ![[self window] isVisible] || [fTorrents count] != 1 || ![NSApp isOnSnowLeopardOrBetter])
    11521149        return NO;
    11531150   
Note: See TracChangeset for help on using the changeset viewer.