]> granicus.if.org Git - transmission/commitdiff
remove selected transfers when removing completed transfers, removing through RPC...
authorMitchell Livingston <livings124@transmissionbt.com>
Sun, 13 Feb 2011 02:14:21 +0000 (02:14 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sun, 13 Feb 2011 02:14:21 +0000 (02:14 +0000)
macosx/Controller.m

index c8ecc90ee488442f2d5da25d66e32c8fa55cc5a6..cc8f431d322efc0e936e80e51055b365edd207f5 100644 (file)
@@ -1407,6 +1407,9 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
 
 - (void) confirmRemoveTorrents: (NSArray *) torrents deleteData: (BOOL) deleteData
 {
+    NSMutableArray * selectedValues = [NSMutableArray arrayWithArray: [fTableView selectedValues]];
+    [selectedValues removeObjectsInArray: torrents];
+    
     //don't want any of these starting then stopping
     for (Torrent * torrent in torrents)
         [torrent setWaitToStart: NO];
@@ -1436,7 +1439,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
     #warning why do we need them retained?
     [torrents release];
     
-    [fTableView deselectAll: nil];
+    [fTableView selectValues: selectedValues];
     
     [self updateTorrentsInQueue];
 }