path: root/src/plugins/platforms/ios/
diff options
authorRichard Moe Gustavsen <>2013-04-15 15:15:36 +0200
committerThe Qt Project <>2013-04-19 12:03:36 +0200
commit5ea3845bd0bf4dec9828270ab18e7c94d596975e (patch)
tree2277c94fa2cff0ea0760a56eb31c2629e57a4578 /src/plugins/platforms/ios/
parent963b8dabef3b82f6d7cdda0669373ceae1629699 (diff)
iOS: use an explicit pointer to qiosViewController
As it stood, we always relied on the root view controller being a QIOSViewController if isQtApplication() returned true. For mixed application, this might not always be true as native code can choose to replace the root view controller at times, or even rip it out, and place it as a child of another (e.g UISplitViewController). This change will give an extra protection against that. Change-Id: I0cb85796a8b82f9037c32f9e85e04e1dc7aad8e2 Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/plugins/platforms/ios/')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/ b/src/plugins/platforms/ios/
index 41a3fff84f..10cbe529c4 100644
--- a/src/plugins/platforms/ios/
+++ b/src/plugins/platforms/ios/
@@ -46,6 +46,7 @@
@implementation QIOSApplicationDelegate
@synthesize window;
+@synthesize qiosViewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
@@ -85,6 +86,7 @@
- (void)dealloc
+ [qiosViewController release];
[window release];
[super dealloc];