experimental fix for #5106

This commit is contained in:
Mitchell Livingston
2012-10-30 00:44:20 +00:00
parent 1e0f36fda0
commit 13d5c76437
+2
View File
@@ -1502,9 +1502,11 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
[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
[torrents retain];
[[NSAnimationContext currentContext] setCompletionHandler: ^{
for (Torrent * torrent in torrents)
[torrent closeRemoveTorrent: deleteData];
[torrents release];
}];
[fTableView beginUpdates];