get rid of one 10.5 problem
This commit is contained in:
parent
7bd3e0c297
commit
4e16e80ad6
|
@ -171,12 +171,13 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||||
//make sure another Transmission.app isn't running already
|
//make sure another Transmission.app isn't running already
|
||||||
BOOL othersRunning = NO;
|
BOOL othersRunning = NO;
|
||||||
|
|
||||||
if ([NSApp isOnSnowLeopardOrBetter])
|
#warning enable when 10.6-only
|
||||||
|
/*if ([NSApp isOnSnowLeopardOrBetter])
|
||||||
{
|
{
|
||||||
NSArray * apps = [NSRunningApplication runningApplicationsWithBundleIdentifier: [[NSBundle mainBundle] bundleIdentifier]];
|
NSArray * apps = [NSRunningApplication runningApplicationsWithBundleIdentifier: [[NSBundle mainBundle] bundleIdentifier]];
|
||||||
othersRunning = [apps count] > 1;
|
othersRunning = [apps count] > 1;
|
||||||
}
|
}
|
||||||
else
|
else*/
|
||||||
{
|
{
|
||||||
NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
|
NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
|
||||||
const int processIdentifier = [[NSProcessInfo processInfo] processIdentifier];
|
const int processIdentifier = [[NSProcessInfo processInfo] processIdentifier];
|
||||||
|
|
Loading…
Reference in New Issue