summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-13 15:48:54 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-14 05:09:09 -0700
commit708cf61e40da2ed0f63f8b212a2c3c9f7bab3e4f (patch)
tree8bf324073b319248e23ae1d6c35c7ed63f732346 /MobileCydia.mm
parent4f651400990874d88ab8be0403e371f88e36b954 (diff)
Source warnings added null sources.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm13
1 files 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")