From 8b672753ae94f76308557375ea13f373143d78cd Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 1 Aug 2009 19:48:30 +0000 Subject: - 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 --- Source/TableDocument.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/TableDocument.m') 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]; -- cgit v1.2.3