summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@intopalo.com>2015-05-03 13:36:22 +0300
committerAndrew Knight <qt@panimo.net>2015-05-04 18:48:23 +0000
commit754ba5768623136bdd6ff9c97330193d1a390215 (patch)
tree78a2adaa7058945c5c0ad189968d279dbe6a3a50
parent8b571c869eaeea4a158f9d8ed89454b9c90f5d46 (diff)
downloadqttools-754ba5768623136bdd6ff9c97330193d1a390215.tar.gz
winrtrunner: Remove the app when stopping on Windows Phone
The native API fails to stop the app, but removing the app will successfully stop it. Until we have a reliable way to stop the application, simply remove the app instead. Task-number: QTBUG-41946 Change-Id: I98662103a7242f806e2eb5ef06cfd60372df681a Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
-rw-r--r--src/winrtrunner/appxphoneengine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/winrtrunner/appxphoneengine.cpp b/src/winrtrunner/appxphoneengine.cpp
index 526ef2872..32269be01 100644
--- a/src/winrtrunner/appxphoneengine.cpp
+++ b/src/winrtrunner/appxphoneengine.cpp
@@ -491,6 +491,7 @@ bool AppxPhoneEngine::stop()
if (!connect())
return false;
+#if 0 // This does not actually stop the app - QTBUG-41946
ComPtr<ICcConnection3> connection;
HRESULT hr = d->connection.As(&connection);
RETURN_FALSE_IF_FAILED("Failed to cast connection object");
@@ -500,6 +501,9 @@ bool AppxPhoneEngine::stop()
RETURN_FALSE_IF_FAILED("Failed to stop the package");
return true;
+#else
+ return remove();
+#endif
}
QString AppxPhoneEngine::devicePath(const QString &relativePath) const