mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +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:
parent
9348605f03
commit
98a82de9ec
1 changed files with 4 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue