mirror of
https://github.com/transmission/transmission.git
synced 2025-12-27 13:41:17 +00:00
#2370 On 10.6, revaling files in Finder will select multiple files in the same directory
This commit is contained in:
@@ -1178,7 +1178,16 @@ typedef enum
|
||||
- (void) revealDataFile: (id) sender
|
||||
{
|
||||
if ([fTorrents count] > 0)
|
||||
[[fTorrents objectAtIndex: 0] revealData];
|
||||
{
|
||||
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
||||
if ([NSApp isOnSnowLeopardOrBetter])
|
||||
{
|
||||
NSURL * file = [NSURL fileURLWithPath: [torrent dataLocation]];
|
||||
[[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: [NSArray arrayWithObject: file]];
|
||||
}
|
||||
else
|
||||
[[NSWorkspace sharedWorkspace] selectFile: [torrent dataLocation] inFileViewerRootedAtPath: nil];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) setFileFilterText: (id) sender
|
||||
|
||||
Reference in New Issue
Block a user