1
0
Fork 0
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:
Mitchell Livingston 2012-09-09 12:42:10 +00:00
parent bb9c73bda4
commit 9699c550f8

View file

@ -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;
}