aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTablesList.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-08-07 19:31:44 +0000
committerstuconnolly <stuart02@gmail.com>2011-08-07 19:31:44 +0000
commit2fe0f6e25814b1add160cdda67b94f82b39423b0 (patch)
tree1313bd830cf4fd6dfadff5c266f3fab5325ab463 /Source/SPTablesList.m
parent4f36d14c724d2d674abf7cc52b68b073ab76ddcb (diff)
downloadsequelpro-2fe0f6e25814b1add160cdda67b94f82b39423b0.tar.gz
sequelpro-2fe0f6e25814b1add160cdda67b94f82b39423b0.tar.bz2
sequelpro-2fe0f6e25814b1add160cdda67b94f82b39423b0.zip
Fix an exception when removing the only content filter. Fixes exceptions http://spbug.com/l/2360 and http://spbug.com/l/2453
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r--Source/SPTablesList.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m
index acb366fb..f79a778b 100644
--- a/Source/SPTablesList.m
+++ b/Source/SPTablesList.m
@@ -1780,8 +1780,9 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable";
*/
- (void) showFilter
{
- if ([tableListFilterSplitView collapsibleSubviewIsCollapsed])
+ if ([tableListFilterSplitView collapsibleSubviewIsCollapsed]) {
[tableListFilterSplitView performSelectorOnMainThread:@selector(toggleCollapse:) withObject:nil waitUntilDone:NO];
+ }
}
/**
@@ -1790,8 +1791,9 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable";
*/
- (void) hideFilter
{
- if (![tableListFilterSplitView collapsibleSubviewIsCollapsed])
+ if (![tableListFilterSplitView collapsibleSubviewIsCollapsed]) {
[tableListFilterSplitView performSelectorOnMainThread:@selector(toggleCollapse:) withObject:nil waitUntilDone:NO];
+ }
}
/**