From 3707eb56b3f0ffbaca44fb7a616571270cdceaf7 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 12 Feb 2011 18:41:47 -0800 Subject: [PATCH 1/1] -[SectionController initWithDatabase:section:] stored fields outside of self scope. --- MobileCydia.mm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 96736654..832cd654 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; } -- 2.47.2