aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseViewController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-11-25 01:16:43 +0000
committerrowanbeentje <rowan@beent.je>2010-11-25 01:16:43 +0000
commitf51f2b3d87a59a94d5bc16850debfec5128b50ed (patch)
treebaea8d7c8bfd454306cdac42caabd331f49f8886 /Source/SPDatabaseViewController.m
parentc1a8f16cfdf68e28df39d0e39f9e5db5f7cb9685 (diff)
downloadsequelpro-f51f2b3d87a59a94d5bc16850debfec5128b50ed.tar.gz
sequelpro-f51f2b3d87a59a94d5bc16850debfec5128b50ed.tar.bz2
sequelpro-f51f2b3d87a59a94d5bc16850debfec5128b50ed.zip
- Fix interface updates when multiple tables are selected
Diffstat (limited to 'Source/SPDatabaseViewController.m')
-rw-r--r--Source/SPDatabaseViewController.m6
1 files changed, 2 insertions, 4 deletions
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.