From b4b81b2dd07674b7dc3208e3b79690f66b1bf113 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 14 Jun 2011 00:19:01 +0000 Subject: - 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 --- Source/SPTableInfo.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/SPTableInfo.m') 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; } -- cgit v1.2.3