Ignore:
Timestamp:
Oct 10, 2009, 1:21:27 PM (13 years ago)
Author:
livings124
Message:

attempt number one of fixing 10.5 support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9262 r9267  
    697697    [fDefaults setBool: [[fInfoController window] isVisible] forKey: @"InfoVisible"];
    698698   
    699     const BOOL quickLookOpen = [NSApp isOnSnowLeopardOrBetter] && [QLPreviewPanel sharedPreviewPanelExists]
    700                                 && [[QLPreviewPanel sharedPreviewPanel] isVisible];
     699    const BOOL quickLookOpen = [NSApp isOnSnowLeopardOrBetter] && [QLPreviewPanelSL sharedPreviewPanelExists]
     700                                && [[QLPreviewPanelSL sharedPreviewPanel] isVisible];
    701701    for (NSWindow * window in [NSApp windows])
    702702    {
    703         if (!quickLookOpen || window != [QLPreviewPanel sharedPreviewPanel]) //hide quicklook window last to avoid animation
     703        if (!quickLookOpen || window != [QLPreviewPanelSL sharedPreviewPanel]) //hide quicklook window last to avoid animation
    704704            [window orderOut: nil];
    705705    }
     
    707707    if (quickLookOpen)
    708708    {
    709         [[QLPreviewPanel sharedPreviewPanel] updateController];
    710         [[QLPreviewPanel sharedPreviewPanel] orderOut: nil];
     709        [[QLPreviewPanelSL sharedPreviewPanel] updateController];
     710        [[QLPreviewPanelSL sharedPreviewPanel] orderOut: nil];
    711711    }
    712712   
     
    15231523    [fInfoController setInfoForTorrents: [fTableView selectedTorrents]];
    15241524   
    1525     if ([NSApp isOnSnowLeopardOrBetter] && [QLPreviewPanel sharedPreviewPanelExists] && [[QLPreviewPanel sharedPreviewPanel] isVisible])
    1526         [[QLPreviewPanel sharedPreviewPanel] reloadData];
     1525    if ([NSApp isOnSnowLeopardOrBetter] && [QLPreviewPanelSL sharedPreviewPanelExists] && [[QLPreviewPanelSL sharedPreviewPanel] isVisible])
     1526        [[QLPreviewPanelSL sharedPreviewPanel] reloadData];
    15271527}
    15281528
     
    40254025        return;
    40264026   
    4027     if ([[QLPreviewPanel sharedPreviewPanel] isVisible])
    4028         [[QLPreviewPanel sharedPreviewPanel] orderOut: nil];
     4027    if ([[QLPreviewPanelSL sharedPreviewPanel] isVisible])
     4028        [[QLPreviewPanelSL sharedPreviewPanel] orderOut: nil];
    40294029    else
    4030         [[QLPreviewPanel sharedPreviewPanel] makeKeyAndOrderFront: nil];
     4030        [[QLPreviewPanelSL sharedPreviewPanel] makeKeyAndOrderFront: nil];
    40314031}
    40324032
Note: See TracChangeset for help on using the changeset viewer.