]> git.saurik.com Git - cydia.git/commitdiff
-[SectionController initWithDatabase:section:] stored fields outside of self scope.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 13 Feb 2011 02:41:47 +0000 (18:41 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 13 Feb 2011 03:09:34 +0000 (19:09 -0800)
MobileCydia.mm

index 967366541557e615da8e78f815cd5298670cb245..832cd654cd42ee421d2aac9a7f2e0c858226099d 100644 (file)
@@ -6679,18 +6679,15 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 
 - (id) initWithDatabase:(Database *)database section:(NSString *)name {
     NSString *title;
-
-    if (name == nil) {
+    if (name == nil)
         title = UCLocalize("ALL_PACKAGES");
-    } else if (![name isEqual:@""]) {
+    else if (![name isEqual:@""])
         title = [[NSBundle mainBundle] localizedStringForKey:Simplify(name) value:nil table:@"Sections"];
-    } else {
+    else
         title = UCLocalize("NO_SECTION");
-    }
-
-    section_ = name;
 
     if ((self = [super initWithDatabase:database title:title filter:@selector(isVisibleInSection:) with:name]) != nil) {
+        section_ = name;
     } return self;
 }