aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTablesList.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r--Source/SPTablesList.m9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m
index bd3d82b6..0d4ef643 100644
--- a/Source/SPTablesList.m
+++ b/Source/SPTablesList.m
@@ -2074,11 +2074,16 @@
}
[tablesListView reloadData];
-
+
+ // Reset selectedTableName and selectedTableType
+ if (selectedTableName) [selectedTableName release];
+ selectedTableName = nil;
+ selectedTableType = SPTableTypeNone;
+ [tablesListView deselectAll:self];
+
// set window title
[tableDocumentInstance updateWindowTitle:self];
- [tablesListView deselectAll:self];
// Query the structure of all databases in the background (mainly for completion)
[NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:mySQLConnection withObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", nil]];