forked from qt-creator/qt-creator
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:
@@ -1244,14 +1244,18 @@ void SimpleTargetRunner::doStart(const Runnable &runnable, const IDevice::ConstP
|
||||
if (runnable.command.isEmpty()) {
|
||||
reportFailure(RunControl::tr("No executable specified."));
|
||||
} else {
|
||||
m_launcher.setRunnable(runnable);
|
||||
Runnable runnableWithoutDevice = runnable;
|
||||
runnableWithoutDevice.device.reset();
|
||||
m_launcher.setRunnable(runnableWithoutDevice);
|
||||
m_launcher.start();
|
||||
}
|
||||
|
||||
} else {
|
||||
connect(&m_launcher, &ApplicationLauncher::processStarted, this, &RunWorker::reportStarted);
|
||||
Runnable runnableWithDevice = runnable;
|
||||
runnableWithDevice.device = device;
|
||||
m_launcher.setRunnable(runnable);
|
||||
m_launcher.start(device);
|
||||
m_launcher.start();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user