aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableInfo.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-06-14 00:19:01 +0000
committerrowanbeentje <rowan@beent.je>2011-06-14 00:19:01 +0000
commitb4b81b2dd07674b7dc3208e3b79690f66b1bf113 (patch)
tree712709715094c00668e681e83d0ce91cfb061d26 /Source/SPTableInfo.m
parent876a4e359f72653a4be001b5bb41900253794b58 (diff)
downloadsequelpro-b4b81b2dd07674b7dc3208e3b79690f66b1bf113.tar.gz
sequelpro-b4b81b2dd07674b7dc3208e3b79690f66b1bf113.tar.bz2
sequelpro-b4b81b2dd07674b7dc3208e3b79690f66b1bf113.zip
- Fix "Multiple selection" still being displayed after multiple tables are deleted
- If multiple tables are selected when opening the SPFieldMapperController select the first to import into - Clean up tableName in tablesList - now returns nil if no tables are selected or multiple tables are selected, instead of returning an empty string for multiple tables
Diffstat (limited to 'Source/SPTableInfo.m')
-rw-r--r--Source/SPTableInfo.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPTableInfo.m b/Source/SPTableInfo.m
index d06198b4..bb9abacd 100644
--- a/Source/SPTableInfo.m
+++ b/Source/SPTableInfo.m
@@ -126,9 +126,11 @@
[info removeAllObjects];
- if ([[tableListInstance tableName] isEqualToString:@""]) {
+ if (![tableListInstance tableName]) {
[info addObject:NSLocalizedString(@"INFORMATION", @"header for blank info pane")];
- [info addObject:NSLocalizedString(@"multiple selection", @"multiple selection")];
+ if ([[tableListInstance selectedTableItems] count]) {
+ [info addObject:NSLocalizedString(@"multiple selection", @"multiple selection")];
+ }
[infoTable reloadData];
return;
}