From b7570c44468689252a2ac4e3f1417b7949ef0106 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 30 Aug 2009 17:52:03 +0000 Subject: [PATCH] missed one in the last commit --- macosx/TorrentCell.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/macosx/TorrentCell.m b/macosx/TorrentCell.m index 929d014f9..95120be4d 100644 --- a/macosx/TorrentCell.m +++ b/macosx/TorrentCell.m @@ -301,7 +301,13 @@ fMouseDownRevealButton = NO; [controlView setNeedsDisplayInRect: cellFrame]; - [[self representedObject] revealData]; + if ([NSApp isOnSnowLeopardOrBetter]) + { + NSURL * file = [NSURL fileURLWithPath: [[self representedObject] dataLocation]]; + [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: [NSArray arrayWithObject: file]]; + } + else + [[NSWorkspace sharedWorkspace] selectFile: [[self representedObject] dataLocation] inFileViewerRootedAtPath: nil]; } else;