aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-11-18 01:13:02 +0000
committerrowanbeentje <rowan@beent.je>2009-11-18 01:13:02 +0000
commit51d62d23b300a4400e08eda92805a0b08a521cd9 (patch)
tree21aba95277b4a7e2ca59230001e986946709fac7 /Source
parent251bc8a52e56fbf240b74d7bfcaf21090bbfe83f (diff)
downloadsequelpro-51d62d23b300a4400e08eda92805a0b08a521cd9.tar.gz
sequelpro-51d62d23b300a4400e08eda92805a0b08a521cd9.tar.bz2
sequelpro-51d62d23b300a4400e08eda92805a0b08a521cd9.zip
- Fix table list filter show/hide on database change by calling the toggle on the main thread
Diffstat (limited to 'Source')
-rw-r--r--Source/TablesList.m4
1 files changed, 2 insertions, 2 deletions
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];
}
/**