aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-02-23 02:17:36 +0000
committerrowanbeentje <rowan@beent.je>2011-02-23 02:17:36 +0000
commit1a93949c18aca9b037cda25ab350a80efbb59acd (patch)
tree7ea485ba62b7f9722ac15fb72e1142f138bfa31a /Source/SPTableContent.m
parent73f0f83a2eb41874212c7165bfd535bdf607d5b0 (diff)
downloadsequelpro-1a93949c18aca9b037cda25ab350a80efbb59acd.tar.gz
sequelpro-1a93949c18aca9b037cda25ab350a80efbb59acd.tar.bz2
sequelpro-1a93949c18aca9b037cda25ab350a80efbb59acd.zip
- Improve filter dropdown comparison memory to no longer override filters to restore for foreighn keys/history navigation, improving on r3193
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index a0b184dd..a127e51d 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -2382,9 +2382,12 @@
[menu addItem:item];
[item release];
- // Attempt to reselect the previously selected title, falling back to the first item
- [compareField selectItemWithTitle:titleToRestore];
- if (![compareField selectedItem]) [compareField selectItemAtIndex:0];
+ // Attempt to reselect the previously selected title, falling back to the first
+ // item on failure, as long as there is no filter selection to be restored.
+ if (!filterFieldToRestore) {
+ [compareField selectItemWithTitle:titleToRestore];
+ if (![compareField selectedItem]) [compareField selectItemAtIndex:0];
+ }
// Update the argumentField enabled state
[self performSelectorOnMainThread:@selector(toggleFilterField:) withObject:self waitUntilDone:YES];