1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

remove selected transfers when removing completed transfers, removing through RPC, etc. (whenever removing transfers that aren't the selected transfers)

This commit is contained in:
Mitchell Livingston 2011-02-13 02:14:21 +00:00
parent 9348605f03
commit 98a82de9ec

View 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];
}