mirror of
https://github.com/transmission/transmission
synced 2025-02-03 04:53:27 +00:00
missed one in the last commit
This commit is contained in:
parent
912d76dee4
commit
b7570c4446
1 changed files with 7 additions and 1 deletions
|
@ -301,7 +301,13 @@
|
||||||
fMouseDownRevealButton = NO;
|
fMouseDownRevealButton = NO;
|
||||||
[controlView setNeedsDisplayInRect: cellFrame];
|
[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;
|
else;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue