]> granicus.if.org Git - transmission/commitdiff
Add some warnings and excessive Lion checks
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 27 Aug 2011 21:32:45 +0000 (21:32 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 27 Aug 2011 21:32:45 +0000 (21:32 +0000)
macosx/TorrentCell.m
macosx/TorrentTableView.m

index 51e71f710ca5437814358562086e18686d57b7b6..e5ffa39bcb8bb8279c25ab4a4b7b0790c5bc6f6a 100644 (file)
         #warning image should use new gear
         NSString * actionImageString;
         if (fMouseDownActionButton)
+            #warning we can get rid of the on 10.7
             actionImageString = @"ActionOn.png";
         else if (!fTracking && fHoverAction)
             actionImageString = @"ActionHover.png";
index b71f3601c430ac785d00e149ab77b57683ff1b55..c11b0f4ab35980b534a9081129b947e8d7c9a2a1 100644 (file)
@@ -72,6 +72,7 @@
         fMouseControlRow = -1;
         fMouseRevealRow = -1;
         fMouseActionRow = -1;
+        #warning we can get rid of the on 10.7
         fActionPushedRow = -1;
         
         fActionPopoverShown = NO;
     //avoid weird behavior when showing menu by doing this after mouse down
     if (row != -1 && fMouseActionRow == row)
     {
-        fActionPushedRow = row;
-        [self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down
+        if (![NSApp isOnLionOrBetter])
+        {
+            fActionPushedRow = row;
+            [self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down
+        }
         
         #warning maybe make appear on mouse down
         [self displayTorrentActionPopoverForEvent: event];
         
-        fActionPushedRow = -1;
-        [self setNeedsDisplayInRect: [self rectOfRow: row]];
+        if (![NSApp isOnLionOrBetter])
+        {
+            fActionPushedRow = -1;
+            [self setNeedsDisplayInRect: [self rectOfRow: row]];
+        }
     }
     else if (!pushed && [event clickCount] == 2) //double click
     {