aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldMapperController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPFieldMapperController.m')
-rw-r--r--Source/SPFieldMapperController.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/SPFieldMapperController.m b/Source/SPFieldMapperController.m
index c2e507f0..249a8f02 100644
--- a/Source/SPFieldMapperController.m
+++ b/Source/SPFieldMapperController.m
@@ -1575,18 +1575,18 @@ static NSString *SPTableViewSqlColumnID = @"sql";
{
BOOL enableImportButton = YES;
- if(newTableMode) {
- if(![tablesListInstance isTableNameValid:[newTableNameTextField stringValue] forType:SPTableTypeTable ignoringSelectedTable:NO]) {
+ if (newTableMode) {
+ if (![tablesListInstance isTableNameValid:[newTableNameTextField stringValue] forType:SPTableTypeTable ignoringSelectedTable:NO]) {
[importButton setEnabled:NO];
return;
}
- for(NSString* fieldName in fieldMappingTableColumnNames) {
- if(![fieldName length]) {
+ for (NSUInteger i = 0; i < [fieldMappingTableColumnNames count]; i++) {
+ if (![[fieldMappingTableColumnNames objectAtIndex:i] length] && [fieldMappingOperatorArray objectAtIndex:i] == doImport) {
[importButton setEnabled:NO];
return;
}
}
- for(NSString* fieldType in fieldMappingTableTypes) {
+ for (NSString* fieldType in fieldMappingTableTypes) {
if(![fieldType length]) {
[importButton setEnabled:NO];
return;
@@ -1594,7 +1594,7 @@ static NSString *SPTableViewSqlColumnID = @"sql";
}
}
- if([[self selectedImportMethod] isEqualToString:@"UPDATE"]) {
+ if ([[self selectedImportMethod] isEqualToString:@"UPDATE"]) {
enableImportButton = NO;
for(id op in fieldMappingOperatorArray) {
if(op == isEqual) {