diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-21 22:58:20 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-21 22:58:20 -0700 |
commit | 4fd0c4667e9a12fa82521d5a9105109a638958cd (patch) | |
tree | e677a44bff507cc454423c5dc284a7206628257e | |
parent | 9e130bc217d17c09d3dd85d3f0400c0cf447d157 (diff) |
Need to setDelegate: on apptapp:// URLs.
-rw-r--r-- | MobileCydia.mm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 7ce0f78..272d73a 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -9615,8 +9615,12 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { NSString *path([[url absoluteString] substringFromIndex:[scheme length] + 3]); NSArray *components([path componentsSeparatedByString:@"/"]); - if ([scheme isEqualToString:@"apptapp"] && [components count] > 0 && [[components objectAtIndex:0] isEqualToString:@"package"]) - return [self pageForPackage:[components objectAtIndex:1]]; + if ([scheme isEqualToString:@"apptapp"] && [components count] > 0 && [[components objectAtIndex:0] isEqualToString:@"package"]) { + CyteViewController *controller([self pageForPackage:[components objectAtIndex:1]]); + if (controller != nil) + [controller setDelegate:self]; + return controller; + } if ([components count] < 1 || ![scheme isEqualToString:@"cydia"]) return nil; |