Changeset 9300


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

QuickLook? main window even if it's closed, and update the QL window when opening/closing the inspector

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9299 r9300  
    712712    if (quickLookOpen)
    713713    {
    714         [[QLPreviewPanelSL sharedPreviewPanel] updateController];
     714        [[QLPreviewPanelSL sharedPreviewPanel] reloadData];
    715715        [[QLPreviewPanelSL sharedPreviewPanel] orderOut: nil];
    716716    }
     
    15181518        [fInfoController close];
    15191519    else
    1520     {
     1520    {       
    15211521        [fInfoController updateInfoStats];
    15221522        [[fInfoController window] orderFront: nil];
     1523       
     1524        if ([fInfoController canQuickLook]
     1525            && [QLPreviewPanelSL sharedPreviewPanelExists] && [[QLPreviewPanelSL sharedPreviewPanel] isVisible])
     1526        [[QLPreviewPanelSL sharedPreviewPanel] reloadData];
     1527       
    15231528    }
    15241529}
     
    31243129}
    31253130
    3126 #warning refresh QL is either window is closed
    31273131- (void) beginPreviewPanelControl: (id) panel
    31283132{
     
    31543158    if ([fInfoController canQuickLook])
    31553159        return [[fInfoController quickLookURLs] count];
    3156     else if ([fWindow isVisible])
     3160    else
    31573161        return [[self quickLookableTorrents] count];
    3158     else
    3159         return 0;
    31603162}
    31613163
  • trunk/macosx/FileOutlineController.m

    r9267 r9300  
    135135    if ([NSApp isOnSnowLeopardOrBetter] && [QLPreviewPanelSL sharedPreviewPanelExists]
    136136        && [[QLPreviewPanelSL sharedPreviewPanel] isVisible])
    137     {
    138137        [[QLPreviewPanelSL sharedPreviewPanel] reloadData];
    139         [[QLPreviewPanelSL sharedPreviewPanel] updateController];
    140     }
    141138}
    142139
  • trunk/macosx/InfoWindowController.m

    r9299 r9300  
    676676}
    677677
     678- (void) windowWillClose: (NSNotification *) notification
     679{
     680    if ([NSApp isOnSnowLeopardOrBetter] && fCurrentTabTag == TAB_FILES_TAG
     681        && ([QLPreviewPanelSL sharedPreviewPanelExists] && [[QLPreviewPanelSL sharedPreviewPanel] isVisible]))
     682        [[QLPreviewPanelSL sharedPreviewPanel] reloadData];
     683}
     684
    678685- (void) setTab: (id) sender
    679686{
     
    813820    [view setHidden: NO];
    814821   
    815     #warning take a look at
    816822    if ([NSApp isOnSnowLeopardOrBetter] && (fCurrentTabTag == TAB_FILES_TAG || oldTabTag == TAB_FILES_TAG)
    817823        && ([QLPreviewPanelSL sharedPreviewPanelExists] && [[QLPreviewPanelSL sharedPreviewPanel] isVisible]))
    818         [[QLPreviewPanelSL sharedPreviewPanel] updateController];
     824        [[QLPreviewPanelSL sharedPreviewPanel] reloadData];
    819825}
    820826
Note: See TracChangeset for help on using the changeset viewer.