diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-22 05:35:03 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-22 05:35:03 -0700 |
commit | 9de35e86cd6e4f26365397472e50ea7a0e136cfd (patch) | |
tree | 968ce5e6fff10c8fc00c19f84f9a34bcaa4f6c62 | |
parent | 6f44d712c7dc9d3161a1c7beb2c9bc89a86e3337 (diff) |
I had broken the ability to deselect unselected controllers.
-rw-r--r-- | MobileCydia.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 368f629..e97f3dc 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; |