diff options
author | rowanbeentje <rowan@beent.je> | 2009-08-01 19:48:30 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-08-01 19:48:30 +0000 |
commit | 8b672753ae94f76308557375ea13f373143d78cd (patch) | |
tree | d5b59470f6570fbfd907a9ff214a0e0367578681 /Source/TableDocument.m | |
parent | 61c1ffe21ce73752bc195e0312a6a851808601e6 (diff) | |
download | sequelpro-8b672753ae94f76308557375ea13f373143d78cd.tar.gz sequelpro-8b672753ae94f76308557375ea13f373143d78cd.tar.bz2 sequelpro-8b672753ae94f76308557375ea13f373143d78cd.zip |
- Fix an errant NSLog in TableSource
- Improve and make consistent state saving in TableContent; now saves filters and scroll position mor reliably on refresh/edit, and supports remembering and restoring which rows were selected
- Significantly improve table history - only create entries for tables switches or filters, only remember 50 items, and save view/filters/scroll position/selections in table content view
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 76e0337b..3a337041 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -402,7 +402,10 @@ } return; } - + + // Save existing scroll position and details + [spHistoryControllerInstance updateHistoryEntries]; + // show error on connection failed if ( ![mySQLConnection selectDB:[chooseDatabaseButton titleOfSelectedItem]] ) { if ( [mySQLConnection isConnected] ) { @@ -1763,7 +1766,7 @@ } } else if ([itemIdentifier isEqualToString:@"HistoryNavigationToolbarItemIdentifier"]) { - [toolbarItem setLabel:NSLocalizedString(@"History", @"toolbar item for navigation history")]; + [toolbarItem setLabel:NSLocalizedString(@"Table History", @"toolbar item for navigation history")]; [toolbarItem setPaletteLabel:[toolbarItem label]]; [toolbarItem setView:historyControl]; |