From 51d62d23b300a4400e08eda92805a0b08a521cd9 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 18 Nov 2009 01:13:02 +0000 Subject: - Fix table list filter show/hide on database change by calling the toggle on the main thread --- Source/TablesList.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/TablesList.m b/Source/TablesList.m index 3a7dbacf..f37be72e 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -1492,7 +1492,7 @@ - (void) showFilter { if ([tableListFilterSplitView collapsibleSubviewIsCollapsed]) - [tableListFilterSplitView performSelector:@selector(toggleCollapse:) withObject:nil afterDelay:0.0]; + [tableListFilterSplitView performSelectorOnMainThread:@selector(toggleCollapse:) withObject:nil waitUntilDone:NO]; } /** @@ -1502,7 +1502,7 @@ - (void) hideFilter { if (![tableListFilterSplitView collapsibleSubviewIsCollapsed]) - [tableListFilterSplitView performSelector:@selector(toggleCollapse:) withObject:nil afterDelay:0.0]; + [tableListFilterSplitView performSelectorOnMainThread:@selector(toggleCollapse:) withObject:nil waitUntilDone:NO]; } /** -- cgit v1.2.3