1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-02 20:43:51 +00:00

missed one in the last commit

This commit is contained in:
Mitchell Livingston 2009-08-30 17:52:03 +00:00
parent 912d76dee4
commit b7570c4446

View file

@ -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;