Changeset 9036


Ignore:
Timestamp:
Sep 4, 2009, 10:21:47 PM (13 years ago)
Author:
livings124
Message:

some cleanup of inspector QuickLook?

Location:
trunk/macosx
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FileOutlineController.m

    r9034 r9036  
    134134{
    135135    if ([QLPreviewPanel sharedPreviewPanelExists] && [[QLPreviewPanel sharedPreviewPanel] isVisible])
     136    {
    136137        [[QLPreviewPanel sharedPreviewPanel] reloadData];
     138        [[QLPreviewPanel sharedPreviewPanel] updateController];
     139    }
    137140}
    138141
  • trunk/macosx/InfoWindowController.h

    r9034 r9036  
    9696- (NSArray *) quickLookURLs;
    9797- (BOOL) canQuickLook;
    98 - (NSRect) quickLookFrameWithURL: (NSURL*) url;
    9998
    10099- (void) setPiecesView: (id) sender;
  • trunk/macosx/InfoWindowController.m

    r9034 r9036  
    821821    [view setHidden: NO];
    822822   
    823     if (fCurrentTabTag == TAB_FILES_TAG || oldTabTag == TAB_FILES_TAG
     823    if ((fCurrentTabTag == TAB_FILES_TAG || oldTabTag == TAB_FILES_TAG)
    824824        && ([QLPreviewPanel sharedPreviewPanelExists] && [[QLPreviewPanel sharedPreviewPanel] isVisible]))
    825         [[QLPreviewPanel sharedPreviewPanel] reloadData];
     825        [[QLPreviewPanel sharedPreviewPanel] updateController];
    826826}
    827827
     
    11101110- (BOOL) acceptsPreviewPanelControl: (QLPreviewPanel *) panel
    11111111{
    1112     return fCurrentTabTag == TAB_FILES_TAG && [[fFileController outlineView] numberOfSelectedRows] > 0;
     1112    return fCurrentTabTag == TAB_FILES_TAG && [self canQuickLook];
    11131113}
    11141114
Note: See TracChangeset for help on using the changeset viewer.