From 4e16e80ad6af89463ca1d87fb9cc38c8ff0aae29 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 10 Oct 2009 01:06:06 +0000 Subject: [PATCH] get rid of one 10.5 problem --- macosx/Controller.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index d83556d25..6ddd9831e 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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];