From ceed86247fa68805ac51e5fa12b7155126c3e2ca Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 14 Mar 2011 02:01:21 -0700 Subject: Allow window.close() to close unselected controllers. --- CyteKit/WebViewController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CyteKit') diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 2d9cfe1..4b2116f 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -581,7 +581,7 @@ float CYScrollViewDecelerationRateNormal; // }}} - (void) close { - [[self navigationController] dismissModalViewControllerAnimated:YES]; + [[[self navigationController] parentViewController] dismissModalViewControllerAnimated:YES]; } - (void) alertView:(UIAlertView *)alert clickedButtonAtIndex:(NSInteger)button { -- cgit v1.2.3