]> granicus.if.org Git - transmission/commitdiff
warnings-- and a little tidying up
authorMitchell Livingston <livings124@transmissionbt.com>
Thu, 24 Apr 2008 21:37:46 +0000 (21:37 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Thu, 24 Apr 2008 21:37:46 +0000 (21:37 +0000)
macosx/Badger.h
macosx/Badger.m

index 583ab383107225c4b970d6810b5e982e889da7f2..92fe3d439d0d32b3dcbc4688507c1a199cf8ee24 100644 (file)
     
     NSImage * fDockIcon, * fBadge;
     
-    NSDictionary * fAttributes;
-    int fCompleted, fCompletedBadged;
-    BOOL fSpeedBadge;
+    int fCompleted;
     
-    BOOL fQuittingTiger;
+    //tiger-only fields
+    NSDictionary * fAttributes;
+    int fCompletedBadged;
+    BOOL fSpeedBadge, fQuittingTiger;
 }
 
 - (id) initWithLib: (tr_handle *) lib;
index 898cac37cdf67e39cf907b83d0563084a76e6566..4d47edf66a70e6933b46ee84fcffcb0eb09d06e3 100644 (file)
@@ -73,7 +73,8 @@
 {
     [[NSNotificationCenter defaultCenter] removeObserver: self];
     
-    [NSApp setApplicationIconImage: nil]; //needed on 10.4
+    if (![NSApp isOnLeopardOrBetter])
+        [NSApp setApplicationIconImage: nil]; //needed on 10.4
     
     [fDockIcon release];
     [fAttributes release];
     }
 }
 
-#warning see if it now quits fast enough to not need this?
 - (void) setQuitting
 {
     if ([NSApp isOnLeopardOrBetter])