]> granicus.if.org Git - transmission/commitdiff
missed one
authorMitchell Livingston <livings124@transmissionbt.com>
Sun, 12 Oct 2008 21:39:12 +0000 (21:39 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sun, 12 Oct 2008 21:39:12 +0000 (21:39 +0000)
macosx/FileOutlineController.m

index a182f11984e720c6ba5326074769916c8ff7d39b..c8c6b9a154d9212039758e28d8ffede967997398 100644 (file)
@@ -352,7 +352,7 @@ typedef enum
         
         BOOL current = NO, canChange = NO;
         NSIndexSet * fileIndexSet;
-        for (NSInteger i = [indexSet firstIndex]; i != NSNotFound && !current; i = [indexSet indexGreaterThanIndex: i])
+        for (NSInteger i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
         {
             fileIndexSet = [[fOutline itemAtRow: i] indexes];
             if (![fTorrent canChangeDownloadCheckForFiles: fileIndexSet])
@@ -360,7 +360,10 @@ typedef enum
             
             canChange = YES;
             if ([fTorrent hasFilePriority: priority forIndexes: fileIndexSet])
+            {
                 current = YES;
+                break;
+            }
         }
         
         [menuItem setState: current ? NSOnState : NSOffState];