aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-02-09 01:20:24 +0000
committerrowanbeentje <rowan@beent.je>2010-02-09 01:20:24 +0000
commitda88e1ea6bac13e52b14e3510db56a18162b2c73 (patch)
tree9b83abbbe4ff7b6e1d185519782fb8e9b3b2f8d8 /Source/TablesList.m
parenta947c6e6c97a31fe18ee168e5c02294706fba164 (diff)
downloadsequelpro-da88e1ea6bac13e52b14e3510db56a18162b2c73.tar.gz
sequelpro-da88e1ea6bac13e52b14e3510db56a18162b2c73.tar.bz2
sequelpro-da88e1ea6bac13e52b14e3510db56a18162b2c73.zip
- Save and restore content table sorting, filter criteria, scroll position and selection when switching tables and databases. This implements Issue #469.
- Fix history bug causing column sorts to always be restored ascending
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r--Source/TablesList.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index 2a9a7657..dd675c43 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -679,6 +679,9 @@
// Notify listeners of the table change now that the state is fully set up.
[[NSNotificationCenter defaultCenter] postNotificationOnMainThreadWithName:SPTableChangedNotification object:tableDocumentInstance];
+ // Restore view states as appropriate
+ [spHistoryControllerInstance restoreViewStates];
+
if( selectedTableType == SP_TABLETYPE_VIEW || selectedTableType == SP_TABLETYPE_TABLE) {
if ( [tabView indexOfTabViewItem:[tabView selectedTabViewItem]] == 0 ) {
[tableSourceInstance loadTable:selectedTableName];