add some 10.6 checks for quick look

This commit is contained in:
Mitchell Livingston
2009-09-07 14:54:22 +00:00
parent 4016dc0358
commit 61caf165ab
3 changed files with 9 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ typedef enum
- (void) outlineViewSelectionDidChange: (NSNotification *) notification
{
if ([QLPreviewPanel sharedPreviewPanelExists] && [[QLPreviewPanel sharedPreviewPanel] isVisible])
if ([NSApp isOnSnowLeopardOrBetter] && [QLPreviewPanel sharedPreviewPanelExists] && [[QLPreviewPanel sharedPreviewPanel] isVisible])
{
[[QLPreviewPanel sharedPreviewPanel] reloadData];
[[QLPreviewPanel sharedPreviewPanel] updateController];