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 47957de2dc

Change-Id: I5b381bb499cf76e469c844ac7474ce2f60761cef
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Jarek Kobus
2022-02-23 14:41:23 +01:00
parent 8e0bc89e64
commit 10abf43afa
9 changed files with 36 additions and 41 deletions

View File

@@ -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);