Changeset 9347
- Timestamp:
- Oct 21, 2009, 10:15:36 PM (13 years ago)
- Location:
- trunk/macosx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r9342 r9347 1474 1474 } 1475 1475 1476 [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: paths]; 1476 if ([paths count] > 0) 1477 [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: paths]; 1477 1478 } 1478 1479 else -
trunk/macosx/FileOutlineController.m
r9342 r9347 326 326 } 327 327 328 [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: paths]; 328 if ([paths count]) 329 [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: paths]; 329 330 } 330 331 else -
trunk/macosx/InfoWindowController.m
r9342 r9347 1210 1210 { 1211 1211 Torrent * torrent = [fTorrents objectAtIndex: 0]; 1212 NSString * location = [torrent dataLocation]; 1213 if (!location) 1214 return; 1215 1212 1216 if ([NSApp isOnSnowLeopardOrBetter]) 1213 1217 { 1214 NSURL * file = [NSURL fileURLWithPath: [torrent dataLocation]];1218 NSURL * file = [NSURL fileURLWithPath: location]; 1215 1219 [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: [NSArray arrayWithObject: file]]; 1216 1220 } 1217 1221 else 1218 [[NSWorkspace sharedWorkspace] selectFile: [torrent dataLocation]inFileViewerRootedAtPath: nil];1222 [[NSWorkspace sharedWorkspace] selectFile: location inFileViewerRootedAtPath: nil]; 1219 1223 } 1220 1224 }
Note: See TracChangeset
for help on using the changeset viewer.