From 10abf43afaaa0e1889bf77f9ca4c2900573d2fb2 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 23 Feb 2022 14:41:23 +0100 Subject: 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 Reviewed-by: Qt CI Bot --- src/plugins/debugger/qml/qmlengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/debugger/qml/qmlengine.cpp') 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); -- cgit v1.2.1