diff options
-rw-r--r-- | Source/SPTablesList.m | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index 0d4ef643..7ae16742 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -1493,6 +1493,18 @@ { if([tablesListView selectedRow] < 0) { + // Reset all + if (selectedTableName) [selectedTableName release]; + selectedTableName = nil; + selectedTableType = SPTableTypeNone; + [tableSourceInstance loadTable:nil]; + [tableContentInstance loadTable:nil]; + [extendedTableInfoInstance loadTable:nil]; + [tableTriggersInstance loadTriggers]; + structureLoaded = NO; + contentLoaded = NO; + statusLoaded = NO; + triggersLoaded = NO; [self updateSelectionWithTaskString:NSLocalizedString(@"Reloading...", @"Reloading table task string")]; return; } @@ -2075,10 +2087,6 @@ [tablesListView reloadData]; - // Reset selectedTableName and selectedTableType - if (selectedTableName) [selectedTableName release]; - selectedTableName = nil; - selectedTableType = SPTableTypeNone; [tablesListView deselectAll:self]; // set window title |