summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2018-04-18 15:37:58 +0200
committerAndy Shaw <andy.shaw@qt.io>2018-04-18 19:44:37 +0000
commit34e34f22097c87e8e937d72117d83d8c572bbea4 (patch)
treed72ce3183d078dcae5b7c7221b5f4da141e68ecf /src
parent84988886a5503e236ac2eb839cf62a01d8a4789b (diff)
iOS: Use the non deprecated application:openURL function
In iOS 9.0, the original application:openURL function was deprecated and replaced with a newer one. As iOS 9.0 is no longer supported we can safely switch to the new one. This is also required to prevent a crash when the LSSupportsOpeningDocumentsInPlace and UIFileSharingEnabled keys are set to true in the Info.plist file. Change-Id: I59a7ee82e3ddb2777ef78e28b964ef8666c629af Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/ios/qiosapplicationdelegate.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/platforms/ios/qiosapplicationdelegate.mm b/src/plugins/platforms/ios/qiosapplicationdelegate.mm
index 9cdbed303c..a56c1e4568 100644
--- a/src/plugins/platforms/ios/qiosapplicationdelegate.mm
+++ b/src/plugins/platforms/ios/qiosapplicationdelegate.mm
@@ -50,11 +50,10 @@
@implementation QIOSApplicationDelegate
-- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
+- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options
{
Q_UNUSED(application);
- Q_UNUSED(sourceApplication);
- Q_UNUSED(annotation);
+ Q_UNUSED(options);
if (!QGuiApplication::instance())
return NO;