1
0
Fork 0
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:
Mitchell Livingston 2009-10-10 01:06:06 +00:00
parent 7bd3e0c297
commit 4e16e80ad6

View file

@ -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];