From 23c13fc29358e5bab9380931a50a7f36ee2734cc Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 23 Jul 2006 14:46:13 +0000 Subject: [PATCH] Turn off filter before hiding the bar, not the other way around. This should make it more obvious that the filter is turned off. --- macosx/Controller.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index c3adef5b4..50cc99fab 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1664,15 +1664,15 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy - (void) toggleFilterBar: (id) sender { - [self showFilterBar: !fFilterBarVisible animate: YES]; - [fDefaults setBool: fFilterBarVisible forKey: @"FilterBar"]; - //disable filtering when hiding - if (!fFilterBarVisible) + if (fFilterBarVisible) { [fSearchFilterField setStringValue: @""]; [self setFilter: fNoFilterButton]; } + + [self showFilterBar: !fFilterBarVisible animate: YES]; + [fDefaults setBool: fFilterBarVisible forKey: @"FilterBar"]; } - (void) showFilterBar: (BOOL) show animate: (BOOL) animate