aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-09-29 23:11:13 +0000
committerrowanbeentje <rowan@beent.je>2009-09-29 23:11:13 +0000
commit885534612cfd9564d54b6f988590e84567181905 (patch)
treebe7a5cdf5fa9bff5252e895ae364a09111be9dc5 /Source
parentf6184afd58588a6687fd2312d9db42a83be0e286 (diff)
downloadsequelpro-885534612cfd9564d54b6f988590e84567181905.tar.gz
sequelpro-885534612cfd9564d54b6f988590e84567181905.tar.bz2
sequelpro-885534612cfd9564d54b6f988590e84567181905.zip
- Correctly release and reset the sort column when deselecting tables or selecting single tables after multiple tables are selected. This addresses Issue #372 and probably Issue #365
Diffstat (limited to 'Source')
-rw-r--r--Source/TableContent.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index a030ee27..8fcf0454 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -168,6 +168,10 @@
isLimited = NO;
[countText setStringValue:@""];
+ // Reset sort column
+ if (sortCol) [sortCol release], sortCol = nil;
+ isDesc = NO;
+
// Empty and disable filter options
[fieldField setEnabled:NO];
[fieldField removeAllItems];