re-commit change from r13488

This commit is contained in:
Mitchell Livingston 2012-09-09 13:01:53 +00:00
parent e016d25414
commit 1f58ca17e5
1 changed files with 3 additions and 1 deletions

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