]> granicus.if.org Git - transmission/commitdiff
r3857 Contextual Menu generates console error
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 24 Jan 2011 02:01:36 +0000 (02:01 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 24 Jan 2011 02:01:36 +0000 (02:01 +0000)
macosx/FileOutlineController.m

index 739f1984fa8027368673cbe7600756dc0e385826..9a71433641ff61edcf232ddb3b3ffd9ca9d3550a 100644 (file)
@@ -351,7 +351,7 @@ typedef enum
     {
         NSIndexSet * indexSet = [fOutline selectedRowIndexes];
         for (NSInteger i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
-            if ([fTorrent fileLocation: [fFileList objectAtIndex: i]] != nil)
+            if ([fTorrent fileLocation: [fOutline itemAtRow: i]] != nil)
                 return YES;
         return NO;
     }