Fix bug preventing any failure return.

This commit is contained in:
Antoine Mercadal
2013-01-24 13:29:38 -08:00
parent f36b23bdb2
commit 448d3958a2
+12 -12
View File
@@ -537,6 +537,18 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification
response = [statusInfo objectAtIndex:1];
DLog(@"handleFileModification:notify: Conversion task result/response: %@/%@", status, response);
if ([status intValue] == 0 && shouldNotify)
{
[delegate performSelector:@selector(growlWithTitle:message:) withObject:successTitle withObject:successMsg];
}
else if (![status intValue] == 0)
{
if (response)
[errorList addObject:response];
[delegate performSelector:@selector(growlWithTitle:message:) withObject:@"Error processing file" withObject:splitPath];
}
}
if (PBXArguments)
@@ -548,18 +560,6 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification
DLog(@"handleFileModification:notify: Update PBX Task result/response: %@/%@", status, response);
}
if ([status intValue] == 0 && shouldNotify)
{
[delegate performSelector:@selector(growlWithTitle:message:) withObject:successTitle withObject:successMsg];
}
else if (![status intValue] == 0)
{
if (response)
[errorList addObject:response];
[delegate performSelector:@selector(growlWithTitle:message:) withObject:@"Error processing file" withObject:splitPath];
}
[[NSNotificationCenter defaultCenter] postNotificationName:XCCConversionStopNotification object:self];
DLog(@"handleFileModification:notify: Processed: %@", fullPath);
}