diff options
author | rowanbeentje <rowan@beent.je> | 2010-02-09 01:20:24 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-02-09 01:20:24 +0000 |
commit | da88e1ea6bac13e52b14e3510db56a18162b2c73 (patch) | |
tree | 9b83abbbe4ff7b6e1d185519782fb8e9b3b2f8d8 /Source/TablesList.m | |
parent | a947c6e6c97a31fe18ee168e5c02294706fba164 (diff) | |
download | sequelpro-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.m | 3 |
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]; |