#5494 Filter should reset when bar is hidden

This commit is contained in:
Mitchell Livingston 2013-09-21 16:24:40 +00:00
parent 6593a47493
commit 78662f6532
1 changed files with 4 additions and 4 deletions

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