summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlengine.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-02-23 14:41:23 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-02-23 15:03:30 +0000
commit10abf43afaaa0e1889bf77f9ca4c2900573d2fb2 (patch)
treea935b026ea80b0fa95df0b416b94d1b347bf4a6a /src/plugins/debugger/qml/qmlengine.cpp
parent8e0bc89e6477f82eee8ab853d1ccb76fd41f6a55 (diff)
downloadqt-creator-10abf43afaaa0e1889bf77f9ca4c2900573d2fb2.tar.gz
ApplicationLauncher: Remove start(IDevice *) overload
Take the device from runnable passed in setRunnable(). If the intention is to run locally, set the device to nullptr inside runnable. Otherwise we don't run locally. Follows 47957de2dcef70b644290c0d6b35f07837160e8a Change-Id: I5b381bb499cf76e469c844ac7474ce2f60761cef Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengine.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp
index 35217779b3..883289bb9f 100644
--- a/src/plugins/debugger/qml/qmlengine.cpp
+++ b/src/plugins/debugger/qml/qmlengine.cpp
@@ -504,7 +504,8 @@ void QmlEngine::closeConnection()
void QmlEngine::startApplicationLauncher()
{
if (!d->applicationLauncher.isRunning()) {
- const Runnable runnable = runParameters().inferior;
+ Runnable runnable = runParameters().inferior;
+ runnable.device.reset();
showMessage(tr("Starting %1").arg(runnable.command.toUserOutput()),
NormalMessageFormat);
d->applicationLauncher.setRunnable(runnable);