From 9de35e86cd6e4f26365397472e50ea7a0e136cfd Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 22 Mar 2011 05:35:03 -0700 Subject: [PATCH] I had broken the ability to deselect unselected controllers. --- MobileCydia.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.45.2