From 708cf61e40da2ed0f63f8b212a2c3c9f7bab3e4f Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 13 Mar 2011 15:48:54 -0700 Subject: Source warnings added null sources. --- MobileCydia.mm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 43217de..255bf87 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8276,12 +8276,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [delegate_ removeProgressHUD:hud_]; hud_ = nil; - bool defer(false); - if (cydia_) { if (NSString *warning = [self yieldToSelector:@selector(getWarning)]) { - defer = true; - UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:UCLocalize("SOURCE_WARNING") message:warning @@ -8295,8 +8291,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [alert setContext:@"warning"]; [alert setNumberOfRows:1]; [alert show]; - } else - [self complete]; + + // XXX: there used to be this great mechanism called yieldToPopup... who deleted it? + error_ = nil; + return; + } + + [self complete]; } else if (error_ != nil) { UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:UCLocalize("VERIFICATION_ERROR") -- cgit v1.2.3