Lose focus before hiding to avoid weird overlay on status bar.

This commit is contained in:
Mitchell Livingston 2006-07-16 18:49:38 +00:00
parent 9090aacff8
commit 9707c16793
1 changed files with 4 additions and 2 deletions

View File

@ -1573,15 +1573,17 @@ static void sleepCallBack(void * controller, io_service_t y,
- (void) toggleFilterBar: (id) sender
{
//first make search filter lose focus
if (fFilterBarVisible)
[fWindow makeFirstResponder: fTableView];
[self showFilterBar: !fFilterBarVisible animate: YES];
[fDefaults setBool: fFilterBarVisible forKey: @"FilterBar"];
//disable filtering when hiding
if (!fFilterBarVisible)
{
[fWindow makeFirstResponder: fTableView];
[fSearchFilterField setStringValue: @""];
[self setFilter: fNoFilterButton];
}
}