]> granicus.if.org Git - transmission/commitdiff
re-commit change from r13488
authorMitchell Livingston <livings124@transmissionbt.com>
Sun, 9 Sep 2012 13:01:53 +0000 (13:01 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sun, 9 Sep 2012 13:01:53 +0000 (13:01 +0000)
macosx/Controller.m

index b55e611c5851a755db97d5cdebb2278b15e78657..a3a99a745a2302d102ab24c20e3b8bd85f674b06 100644 (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;
                 }