diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-12 18:41:47 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-12 19:09:34 -0800 |
commit | 3707eb56b3f0ffbaca44fb7a616571270cdceaf7 (patch) | |
tree | 2817d5a47bb17ec537b4f7460b94f69f1a3252f6 | |
parent | 60a10e1f92cc2b1c83a8ddc638acf5afae8f8c67 (diff) |
-[SectionController initWithDatabase:section:] stored fields outside of self scope.
-rw-r--r-- | MobileCydia.mm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 9673665..832cd65 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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; } |