diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTablesList.m | 9 |
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]]; |