summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2012-03-31 13:15:10 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2012-03-31 13:30:20 -0700
commit1450c2b32c974cac7d6598a1ae5d8eb658e11841 (patch)
tree50f58394d3f9eafa4622f0f9764e13b709e88782
parent26c8a4c8c1b07a770ed97ba25af5065fe74433f2 (diff)
Terribly minor code nit: check hud for != nil.v1.1.6
-rw-r--r--MobileCydia.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 487623a..bf8da9a 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -9499,7 +9499,8 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
- (void) reloadDataWithInvocation:(NSInvocation *)invocation {
@synchronized (self) {
UIProgressHUD *hud(loaded_ ? [self addProgressHUD] : nil);
- [hud setText:UCLocalize("RELOADING_DATA")];
+ if (hud != nil)
+ [hud setText:UCLocalize("RELOADING_DATA")];
[database_ yieldToSelector:@selector(reloadDataWithInvocation:) withObject:invocation];