diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-08-22 14:22:11 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-08-22 14:22:11 +0000 |
commit | 82439bd6c54d64a130c74e9c2dfec66e65de043a (patch) | |
tree | 13f6668be1e0f7d63bfba576596096a4ceb6a820 | |
parent | abe4da81161dbf106545a8130af3557d843a10ab (diff) | |
download | sequelpro-82439bd6c54d64a130c74e9c2dfec66e65de043a.tar.gz sequelpro-82439bd6c54d64a130c74e9c2dfec66e65de043a.tar.bz2 sequelpro-82439bd6c54d64a130c74e9c2dfec66e65de043a.zip |
• moved changes done in r 2566 to tableViewSelectionDidChange: if no item in tablesList is selected to reset SP
-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 |