Changeset 5863


Ignore:
Timestamp:
May 20, 2008, 8:38:14 PM (14 years ago)
Author:
livings124
Message:

remove quicklook animation when the table disappears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FileOutlineController.m

    r5862 r5863  
    7070        //load the QuickLook framework and set the delegate, no point on trying this on Tiger
    7171        //animation types: 0 = none; 1 = fade; 2 = zoom
    72         fQuickLookAvailable = [[NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
     72        fQuickLookAvailable = [[NSBundle bundleWithPath: @"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
    7373        if (fQuickLookAvailable)
    74                 [[[QLPreviewPanel sharedPreviewPanel] windowController] setDelegate: self];
     74            [[[QLPreviewPanel sharedPreviewPanel] windowController] setDelegate: self];
    7575    }
    7676   
     
    8585    {
    8686        if ([[QLPreviewPanel sharedPreviewPanel] isOpen])
    87             [[QLPreviewPanel sharedPreviewPanel] closeWithEffect: 1];
     87            [[QLPreviewPanel sharedPreviewPanel] closeWithEffect: 0];
    8888    }
    8989}
     
    9494- (NSRect) previewPanel: (NSPanel *) panel frameForURL: (NSURL *) url
    9595{
    96     NSRect frame = NSMakeRect(0, 0, 0, 0);
     96    NSRect frame = NSZeroRect;
    9797    int row = [self visibleRowWithURL: url];
    9898   
    9999    if (row != -1)
    100100    {
    101         frame = [fOutline rectOfRow:row];
     101        frame = [fOutline rectOfRow: row];
    102102        frame.origin = [fOutline convertPoint: frame.origin toView: nil];
    103103        frame.origin = [[fOutline window] convertBaseToScreen: frame.origin];
Note: See TracChangeset for help on using the changeset viewer.