From a8d903890b4621833e2674f056a05e6f10d82895 Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Sat, 27 Nov 2010 00:31:09 -0800 Subject: [PATCH] Fix section mapping plist (add and modify), and fix cydia:// urls while inside cydia. --- MobileCydia.mm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index bee20801..fab27f13 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? -- 2.45.2