From 1ddc896d2f88bea86e4b0457d63f7a53b846851d Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 24 Mar 2010 02:30:55 +0000 Subject: - Add a new selectDatabase:item: method to TableDocument, to centralise code for selecting databases and tables. Clean up database selection to use this new method, and avoid reloads when re-selecting the same database. - Convert the history controller to use this new call. This fixes history behaviour when a table list filter was active. - Convert the (hidden) navigator to use this new call. This fixes timing issues. - Make some thread safety tweaks to TablesList. - Change TablesList selectTableOrViewWithName: to selectItemWithName:, including procs etc. --- Source/TableContent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/TableContent.m') diff --git a/Source/TableContent.m b/Source/TableContent.m index 42f65d7f..51d9cbe3 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -1596,7 +1596,7 @@ [self setFiltersToRestore:filterSettings]; // Attempt to switch to the target table - if (![tablesListInstance selectTableOrViewWithName:[refDictionary objectForKey:@"table"]]) { + if (![tablesListInstance selectItemWithName:[refDictionary objectForKey:@"table"]]) { NSBeep(); [self setFiltersToRestore:nil]; } -- cgit v1.2.3