aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPHistoryController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-24 11:55:00 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-24 11:55:00 +0000
commitf1b7ccbcdd139a040adb8caae3366f998b2df75a (patch)
tree9edde6fe5060508c87ff1a300a37db83d962c8dc /Source/SPHistoryController.m
parent0c5422bb4e45e5890ce647001758371307a445d0 (diff)
downloadsequelpro-f1b7ccbcdd139a040adb8caae3366f998b2df75a.tar.gz
sequelpro-f1b7ccbcdd139a040adb8caae3366f998b2df75a.tar.bz2
sequelpro-f1b7ccbcdd139a040adb8caae3366f998b2df75a.zip
• fixed minor issue for filterTable approach in Content
- prepared some stuff for table state history
Diffstat (limited to 'Source/SPHistoryController.m')
-rw-r--r--Source/SPHistoryController.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPHistoryController.m b/Source/SPHistoryController.m
index 3fb0e100..107c24cb 100644
--- a/Source/SPHistoryController.m
+++ b/Source/SPHistoryController.m
@@ -269,6 +269,7 @@
NSIndexSet *contentSelectedIndexSet = [tableContentInstance selectedRowIndexes];
NSRect contentViewport = [tableContentInstance viewport];
NSDictionary *contentFilter = [tableContentInstance filterSettings];
+ NSData *filterTableData = [tableContentInstance filterTableData];
if (!theDatabase) return;
// If a table is selected, save state information
@@ -283,6 +284,7 @@
if (contentSortCol) [contentState setObject:contentSortCol forKey:@"sortCol"];
if (contentSelectedIndexSet) [contentState setObject:contentSelectedIndexSet forKey:@"selection"];
if (contentFilter) [contentState setObject:contentFilter forKey:@"filter"];
+ if (filterTableData) [contentState setObject:filterTableData forKey:@"filterTable"];
// Update the table content states with this information - used when switching tables to restore last used view.
[tableContentStates setObject:contentState forKey:[NSString stringWithFormat:@"%@.%@", [theDatabase backtickQuotedString], [theTable backtickQuotedString]]];