mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
re-add r9257 on 10.6
This commit is contained in:
parent
a292153b26
commit
70acab2791
3 changed files with 5 additions and 5 deletions
|
@ -171,13 +171,12 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
//make sure another Transmission.app isn't running already
|
||||
BOOL othersRunning = NO;
|
||||
|
||||
#warning enable when 10.6-only
|
||||
/*if ([NSApp isOnSnowLeopardOrBetter])
|
||||
if ([NSApp isOnSnowLeopardOrBetter])
|
||||
{
|
||||
NSArray * apps = [NSRunningApplication runningApplicationsWithBundleIdentifier: [[NSBundle mainBundle] bundleIdentifier]];
|
||||
NSArray * apps = [NSRunningApplicationSL runningApplicationsWithBundleIdentifier: [[NSBundle mainBundle] bundleIdentifier]];
|
||||
othersRunning = [apps count] > 1;
|
||||
}
|
||||
else*/
|
||||
else
|
||||
{
|
||||
NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
|
||||
const int processIdentifier = [[NSProcessInfo processInfo] processIdentifier];
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
*****************************************************************************/
|
||||
|
||||
#define QLPreviewPanelSL NSClassFromString(@"QLPreviewPanel")
|
||||
#define NSRunningApplicationSL NSClassFromString(@"NSRunningApplication")
|
||||
|
||||
@interface NSApplication (NSApplicationAdditions)
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
#define GROUP_SEPARATOR_HEIGHT 18.0
|
||||
|
||||
#warning revert
|
||||
#warning uncomment
|
||||
@interface TorrentTableView : NSOutlineView //<QLPreviewPanelDataSource, QLPreviewPanelDelegate>
|
||||
{
|
||||
IBOutlet Controller * fController;
|
||||
|
|
Loading…
Reference in a new issue