From f51f2b3d87a59a94d5bc16850debfec5128b50ed Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 25 Nov 2010 01:16:43 +0000 Subject: - Fix interface updates when multiple tables are selected --- Source/SPDatabaseViewController.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Source/SPDatabaseViewController.m') diff --git a/Source/SPDatabaseViewController.m b/Source/SPDatabaseViewController.m index 0ea8216e..c1b1bdbf 100644 --- a/Source/SPDatabaseViewController.m +++ b/Source/SPDatabaseViewController.m @@ -276,9 +276,7 @@ selectedTableType = SPTableTypeNone; // Clear the views - if ([[tablesListInstance selectedTableNames] count] == 1) { - [[tablesListInstance onMainThread] setSelection:nil]; - } + [[tablesListInstance onMainThread] setSelectionState:nil]; [tableSourceInstance loadTable:nil]; [tableContentInstance loadTable:nil]; [[extendedTableInfoInstance onMainThread] loadTable:nil]; @@ -315,7 +313,7 @@ } // Update the tables list interface - also updates menus to reflect the selected table type - [[tablesListInstance onMainThread] setSelection:[NSDictionary dictionaryWithObjectsAndKeys:aTable, @"name", [NSNumber numberWithInteger:aTableType], @"type", nil]]; + [[tablesListInstance onMainThread] setSelectionState:[NSDictionary dictionaryWithObjectsAndKeys:aTable, @"name", [NSNumber numberWithInteger:aTableType], @"type", nil]]; // If on the main thread, fire up a thread to deal with view changes and data loading; // if already on a background thread, make the changes on the existing thread. -- cgit v1.2.3