mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
#4874 Deleting multiple torrents from the WebUI fails
This commit is contained in:
parent
bb9c73bda4
commit
9699c550f8
1 changed files with 234 additions and 232 deletions
|
@ -1464,13 +1464,15 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
{
|
||||
if (!beganUpdate)
|
||||
{
|
||||
[NSAnimationContext beginGrouping]; //this has to be before we set the completion handler (#4874)
|
||||
|
||||
//we can't closeRemoveTorrent: until it's no longer in the GUI at all
|
||||
[[NSAnimationContext currentContext] setCompletionHandler: ^{
|
||||
for (Torrent * torrent in torrents)
|
||||
[torrent closeRemoveTorrent: deleteData];
|
||||
}];
|
||||
|
||||
[NSAnimationContext beginGrouping];
|
||||
|
||||
[fTableView beginUpdates];
|
||||
beganUpdate = YES;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue