aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTablesList.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/SPTablesList.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/SPTablesList.m')
-rw-r--r--Source/SPTablesList.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m
index 2071f793..45999ea1 100644
--- a/Source/SPTablesList.m
+++ b/Source/SPTablesList.m
@@ -685,12 +685,14 @@
}
/**
+ * Updates application state to match the current selection, including
+ * updating the interface selection if appropriate.
* Takes a dictionary of selection details, containing the selection name
* and type, and updates stored variables and the table list interface to
* match.
* Should be called on the main thread.
*/
-- (void)setSelection:(NSDictionary *)selectionDetails
+- (void)setSelectionState:(NSDictionary *)selectionDetails
{
// First handle empty or multiple selections
if (!selectionDetails || ![selectionDetails objectForKey:@"name"]) {
@@ -1390,6 +1392,7 @@
// Ensure the state is cleared
if ([tableDocumentInstance table]) [tableDocumentInstance loadTable:nil ofType:SPTableTypeNone];
+ else [self setSelectionState:nil];
if (selectedTableName) [selectedTableName release], selectedTableName = nil;
selectedTableType = SPTableTypeNone;
return;