summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-25 15:40:14 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-25 15:40:14 -0800
commitb9956841366cca108cde8e571dd94d02c7fc16f0 (patch)
treec3ce29589c95264f6f4ff8ce778811ed720b01a9 /MobileCydia.mm
parent3adcfba70e98d8248f36c69c9c54fa6c11c8683a (diff)
Fix -[NSNull defaultIcon] bug reported by @JakeAnthraX.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 7f05319..e2a6db3 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -2448,7 +2448,7 @@ struct PackageNameOrdering :
icon = [UIImage imageAtPath:[static_cast<id>(icon_) substringFromIndex:7]];
if (icon == nil) if (section != nil)
icon = [UIImage imageAtPath:[NSString stringWithFormat:@"%@/Sections/%@.png", App_, section]];
- if (icon == nil) if (source_ != nil) if (NSString *dicon = [source_ defaultIcon])
+ if (icon == nil) if (Source *source = [self source]) if (NSString *dicon = [source defaultIcon])
if ([dicon hasPrefix:@"file:///"])
// XXX: correct escaping
icon = [UIImage imageAtPath:[dicon substringFromIndex:7]];