]> granicus.if.org Git - transmission/commitdiff
fix manually adding trackers
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 21 Sep 2009 03:56:57 +0000 (03:56 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 21 Sep 2009 03:56:57 +0000 (03:56 +0000)
macosx/InfoWindowController.m

index 43f67f510bdd293dd6fdff904b101c592d54591c..964c4d7f07fab9cdab204f531396b4f346c2a80c 100644 (file)
@@ -1782,6 +1782,7 @@ typedef enum
     return [item isFolder] || [torrent fileProgress: item] == 1.0;
 }
 
+#warning doesn't like blank addresses
 - (void) addTrackers
 {
     [[self window] makeKeyWindow];
@@ -1796,7 +1797,7 @@ typedef enum
     
     [fTrackerTable reloadData];
     [fTrackerTable selectRowIndexes: [NSIndexSet indexSetWithIndex: [fTrackers count]-1] byExtendingSelection: NO];
-    [fTrackerTable editColumn: 0 row: [fTrackers count]-1 withEvent: nil select: YES];
+    [fTrackerTable editColumn: [fTrackerTable columnWithIdentifier: @"Address"] row: [fTrackers count]-1 withEvent: nil select: YES];
 }
 
 - (void) removeTrackers