]> git.saurik.com Git - cydia.git/commitdiff
Properly update title of SourceController when reloading.
authorGrant Paul <chpwn@chpwn.com>
Fri, 18 Feb 2011 09:26:23 +0000 (01:26 -0800)
committerGrant Paul <chpwn@chpwn.com>
Fri, 18 Feb 2011 09:26:23 +0000 (01:26 -0800)
MobileCydia.mm

index 3d2e83db3c3e34c58c69f1ccf426e2af5954072b..1c7cdd62a2572fcb98758bc0103b97cd74b21cba 100644 (file)
@@ -7669,7 +7669,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     source_ = source;
     key_ = [[source key] retain];
 
-    if ((self = [super initWithDatabase:database title:[source label] filter:@selector(isVisibleInSource:) with:source]) != nil) {
+    if ((self = [super initWithDatabase:database title:[source_ label] filter:@selector(isVisibleInSource:) with:source_]) != nil) {
     } return self;
 }
 
@@ -7678,6 +7678,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     [key_ release];
     key_ = [[source_ key] retain];
     [self setObject:source_];
+    [[self navigationItem] setTitle:[source_ label]];
 
     [super reloadData];
 }