summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-11-27 00:31:09 -0800
committerGrant Paul <chpwn@chpwn.com>2010-11-27 00:31:09 -0800
commit2b4a4d25d3b9aa4360a71cede3f5e932ce46e782 (patch)
treebe6a7ced309958f09a38a2eb15a3b9298b4fad4f
parent4036497353fe4a171869f57c90f54d7c520050e2 (diff)
Fix section mapping plist (add and modify), and fix cydia:// urls while inside cydia.
-rw-r--r--MobileCydia.mm9
1 files changed, 7 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index bee2080..fab27f1 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -8567,8 +8567,9 @@ static _finline void _setHomePage(Cydia *self) {
CYViewController *page = nil;
int tag = 0;
- if ((page = [self pageForURL:starturl_ hasTag:&tag])) {
- [starturl_ release];
+ NSLog(@"open url: %@", url);
+
+ if ((page = [self pageForURL:url hasTag:&tag])) {
[self setPage:page];
tag_ = tag;
[tabbar_ setSelectedViewController:(tag_ == -1 ? nil : [[tabbar_ viewControllers] objectAtIndex:tag_])];
@@ -8579,6 +8580,7 @@ static _finline void _setHomePage(Cydia *self) {
- (void) applicationOpenURL:(NSURL *)url {
[super applicationOpenURL:url];
+ NSLog(@"first: %@", url);
if (!loaded_) starturl_ = [url retain];
else [self openCydiaURL:url];
}
@@ -8767,6 +8769,9 @@ _trace();
_setHomePage(self);
}
+ [starturl_ release];
+ starturl_ = nil;
+
[window_ setUserInteractionEnabled:YES];
// XXX: does this actually slow anything down?