]> granicus.if.org Git - transmission/commitdiff
on 10.6, only reload the progress row in the peer table when clicking it
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 14 Nov 2009 03:26:29 +0000 (03:26 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 14 Nov 2009 03:26:29 +0000 (03:26 +0000)
macosx/PeerTableView.m

index 482a061c5091bc5af96db9a00b1ae1c44e471424..89b4cecada69e06b77c84697abcd9cf12d8e3576 100644 (file)
@@ -23,6 +23,7 @@
  *****************************************************************************/
 
 #import "PeerTableView.h"
+#import "NSApplicationAdditions.h"
 
 @implementation PeerTableView
 
     {
         [[NSUserDefaults standardUserDefaults] setBool: ![[NSUserDefaults standardUserDefaults]
             boolForKey: @"DisplayPeerProgressBarNumber"] forKey: @"DisplayPeerProgressBarNumber"];
-        [self reloadData];
+        
+        if ([NSApp isOnSnowLeopardOrBetter])
+        {
+            NSIndexSet * rowIndexes = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [self numberOfRows])],
+                        * columnIndexes = [NSIndexSet indexSetWithIndex: [self columnAtPoint: point]];
+            [self reloadDataForRowIndexes: rowIndexes columnIndexes: columnIndexes];
+        }
+        else
+            [self reloadData];
     }
 }