From: Jay Freeman (saurik) <saurik@saurik.com>
Date: Sat, 26 Mar 2011 09:08:21 +0000 (-0700)
Subject: Don't hold the Removing Essentials dialog over ProgressController.
X-Git-Tag: v1.1.0^0
X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/d69dbfc52fb69ef3e891052c92b2a0dd6bc9f35f

Don't hold the Removing Essentials dialog over ProgressController.
---

diff --git a/CyteKit/WebViewController.h b/CyteKit/WebViewController.h
index c2e64d53..9b9ba940 100644
--- a/CyteKit/WebViewController.h
+++ b/CyteKit/WebViewController.h
@@ -109,9 +109,6 @@
 - (void) loadRequest:(NSURLRequest *)request;
 - (bool) isLoading;
 
-- (void) reloadURLWithCache:(BOOL)cache;
-- (void) reloadURL;
-
 - (id) init;
 
 - (id) initWithURL:(NSURL *)url;
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 9c85b297..580a9ca1 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -220,7 +220,7 @@ float CYScrollViewDecelerationRateNormal;
 
     request_ = request;
 
-    if ([request_ HTTPBody] == nil && [request_ HTTPBodyStream] == nil)
+    if (cache || [request_ HTTPBody] == nil && [request_ HTTPBodyStream] == nil)
         [self loadRequest:request_];
     else {
         UIAlertView *alert = [[[UIAlertView alloc]
@@ -238,10 +238,6 @@ float CYScrollViewDecelerationRateNormal;
     }
 }
 
-- (void) reloadURL {
-    [self reloadURLWithCache:YES];
-}
-
 - (void) reloadData {
     [super reloadData];
 
@@ -961,7 +957,7 @@ float CYScrollViewDecelerationRateNormal;
 }
 
 - (void) reloadButtonClicked {
-    [self reloadURLWithCache:YES];
+    [self reloadURLWithCache:NO];
 }
 
 - (void) _customButtonClicked {
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 25de2d82..d919a7fb 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4798,7 +4798,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
         if (button == [alert cancelButtonIndex])
             [self dismissModalViewControllerAnimated:YES];
         else if (button == [alert firstOtherButtonIndex]) {
-            [self complete];
+            [self performSelector:@selector(complete) withObject:nil afterDelay:0];
         }
 
         [alert dismissWithClickedButtonIndex:-1 animated:YES];