]> granicus.if.org Git - transmission/commitdiff
#5494 Filter should reset when bar is hidden
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 21 Sep 2013 16:24:40 +0000 (16:24 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 21 Sep 2013 16:24:40 +0000 (16:24 +0000)
macosx/Controller.m

index ae67e08cb6a6b443fea2f804ecff5981f678eb28..0b2bd2cda9a362dee00baf314ba1af9328ecfbed 100644 (file)
@@ -3620,14 +3620,14 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
 {
     const BOOL show = fFilterBar == nil;
     
+    //disable filtering when hiding (have to do before showFilterBar:animate:)
+    if (!show)
+        [fFilterBar reset: NO];
+    
     [self showFilterBar: show animate: YES];
     [fDefaults setBool: show forKey: @"FilterBar"];
     [[fWindow toolbar] validateVisibleItems];
     
-    //disable filtering when hiding
-    if (!show)
-        [fFilterBar reset: NO];
-    
     [self applyFilter]; //do even if showing to ensure tooltips are updated
 }