mirror of
https://github.com/transmission/transmission
synced 2025-01-31 11:23:40 +00:00
get rid of one 10.5 problem
This commit is contained in:
parent
7bd3e0c297
commit
4e16e80ad6
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
BOOL othersRunning = NO;
|
||||
|
||||
if ([NSApp isOnSnowLeopardOrBetter])
|
||||
#warning enable when 10.6-only
|
||||
/*if ([NSApp isOnSnowLeopardOrBetter])
|
||||
{
|
||||
NSArray * apps = [NSRunningApplication runningApplicationsWithBundleIdentifier: [[NSBundle mainBundle] bundleIdentifier]];
|
||||
othersRunning = [apps count] > 1;
|
||||
}
|
||||
else
|
||||
else*/
|
||||
{
|
||||
NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
|
||||
const int processIdentifier = [[NSProcessInfo processInfo] processIdentifier];
|
||||
|
|
Loading…
Reference in a new issue