aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTablesList.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-08-22 14:22:11 +0000
committerBibiko <bibiko@eva.mpg.de>2010-08-22 14:22:11 +0000
commit82439bd6c54d64a130c74e9c2dfec66e65de043a (patch)
tree13f6668be1e0f7d63bfba576596096a4ceb6a820 /Source/SPTablesList.m
parentabe4da81161dbf106545a8130af3557d843a10ab (diff)
downloadsequelpro-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
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r--Source/SPTablesList.m16
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