Fix for an older commit in QuincyKit being only half complete

Even if the user did select to auto send, the dialog appeared again, because the new check if this was the case and if auto send is currently allowed wasn't actually used
This commit is contained in:
Andreas Linde 2011-12-07 15:48:24 +01:00
parent 58f68d4817
commit e975ce9e85

View File

@ -260,7 +260,7 @@ NSString *BWQuincyLocalize(NSString *stringToken) {
if (!quincyBundle()) { if (!quincyBundle()) {
NSLog(@"WARNING: Quincy.bundle is missing, sending reports automatically!"); NSLog(@"WARNING: Quincy.bundle is missing, sending reports automatically!");
[self _sendCrashReports]; [self _sendCrashReports];
} else if (!self.autoSubmitCrashReport && [self hasNonApprovedCrashReports]) { } else if (![self autoSendCrashReports] && [self hasNonApprovedCrashReports]) {
if (self.delegate != nil && [self.delegate respondsToSelector:@selector(willShowSubmitCrashReportAlert)]) { if (self.delegate != nil && [self.delegate respondsToSelector:@selector(willShowSubmitCrashReportAlert)]) {
[self.delegate willShowSubmitCrashReportAlert]; [self.delegate willShowSubmitCrashReportAlert];