diff options
author | rowanbeentje <rowan@beent.je> | 2010-11-25 01:16:43 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-11-25 01:16:43 +0000 |
commit | f51f2b3d87a59a94d5bc16850debfec5128b50ed (patch) | |
tree | baea8d7c8bfd454306cdac42caabd331f49f8886 /Source/SPDatabaseViewController.m | |
parent | c1a8f16cfdf68e28df39d0e39f9e5db5f7cb9685 (diff) | |
download | sequelpro-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.m | 6 |
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. |