Changeset 9039


Ignore:
Timestamp:
Sep 4, 2009, 11:58:27 PM (13 years ago)
Author:
livings124
Message:

remove unneeded calls to sharedPreviewPanel

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9034 r9039  
    32523252        [item setTarget: self];
    32533253        [item setAction: @selector(toggleQuickLook:)];
     3254        [item setAutovalidates: NO];
    32543255       
    32553256        return item;
     
    39653966- (void) toggleQuickLook: (id) sender
    39663967{
    3967     if ([QLPreviewPanel sharedPreviewPanelExists] && [[QLPreviewPanel sharedPreviewPanel] isVisible])
     3968    if ([[QLPreviewPanel sharedPreviewPanel] isVisible])
    39683969        [[QLPreviewPanel sharedPreviewPanel] orderOut: nil];
    39693970    else
  • trunk/macosx/FileOutlineView.m

    r9037 r9039  
    9393    if (firstChar == ' ' && [[[self window] windowController] conformsToProtocol: @protocol(QLPreviewPanelDataSource)])
    9494    {
    95         if ([QLPreviewPanel sharedPreviewPanelExists] && [[QLPreviewPanel sharedPreviewPanel] isVisible])
     95        if ([[QLPreviewPanel sharedPreviewPanel] isVisible])
    9696            [[QLPreviewPanel sharedPreviewPanel] orderOut: nil];
    9797        else
Note: See TracChangeset for help on using the changeset viewer.