From: Jay Freeman (saurik) Date: Tue, 22 Mar 2011 12:35:03 +0000 (-0700) Subject: I had broken the ability to deselect unselected controllers. X-Git-Tag: v1.1.0%rc1~28 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/9de35e86cd6e4f26365397472e50ea7a0e136cfd I had broken the ability to deselect unselected controllers. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 368f629f..e97f3dce 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -6803,12 +6803,12 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } return; } - UINavigationController *navigation([[[UINavigationController alloc] init] autorelease]); - [navigation setViewControllers:[NSArray arrayWithObject:transient]]; - transient = navigation; - NSMutableArray *controllers = [[self viewControllers] mutableCopy]; if (transient != nil) { + UINavigationController *navigation([[[UINavigationController alloc] init] autorelease]); + [navigation setViewControllers:[NSArray arrayWithObject:transient]]; + transient = navigation; + if (transient_ == nil) remembered_ = [controllers objectAtIndex:0]; transient_ = transient;