summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-12-11 23:28:51 -0800
committerGrant Paul <chpwn@chpwn.com>2010-12-11 23:28:51 -0800
commitd817e4de92bfa802bb2122711cf70f747a64aa3f (patch)
treea46161981e4ea9ccb35d08a074e2d14cb3bf585b /MobileCydia.mm
parenta2bd7a7305fc62b7e218cb206b56f35d3a880f28 (diff)
Cleanup my stupidity: remove logging, fix landscape back buttons (via delegation to parent view controllers), and such.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index a3d0a83..1f77e7c 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6977,6 +6977,8 @@ freeing the view controllers on tab change */
// Inherit autorotation settings for modal parents.
if ([self parentViewController] && [[self parentViewController] modalViewController] == self) {
return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation];
+ } else if ([self parentViewController]) {
+ return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation];
} else {
return [super shouldAutorotateToInterfaceOrientation:orientation];
}
@@ -8759,8 +8761,6 @@ static _finline void _setHomePage(Cydia *self) {
CYViewController *page = nil;
int tag = 0;
- NSLog(@"open url: %@", url);
-
if ((page = [self pageForURL:url hasTag:&tag])) {
[self setPage:page];
tag_ = tag;
@@ -8772,7 +8772,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];
}