forked from qt-creator/qt-creator
ApplicationLauncher: Treat DesktopDevice as local
Treat DesktopDevice and all derived devices as local in application launcher. Change-Id: Ie1a025c03f1c96158c67e0c900f89e33ec7c4663 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1243,20 +1243,15 @@ void SimpleTargetRunner::doStart(const Runnable &runnable, const IDevice::ConstP
|
||||
|
||||
if (runnable.command.isEmpty()) {
|
||||
reportFailure(RunControl::tr("No executable specified."));
|
||||
} else {
|
||||
Runnable runnableWithoutDevice = runnable;
|
||||
runnableWithoutDevice.device.reset();
|
||||
m_launcher.setRunnable(runnableWithoutDevice);
|
||||
m_launcher.start();
|
||||
return;
|
||||
}
|
||||
|
||||
} else {
|
||||
connect(&m_launcher, &ApplicationLauncher::processStarted, this, &RunWorker::reportStarted);
|
||||
Runnable runnableWithDevice = runnable;
|
||||
runnableWithDevice.device = device;
|
||||
m_launcher.setRunnable(runnable);
|
||||
m_launcher.start();
|
||||
}
|
||||
Runnable runnableWithDevice = runnable;
|
||||
runnableWithDevice.device = device;
|
||||
m_launcher.setRunnable(runnableWithDevice);
|
||||
m_launcher.start();
|
||||
}
|
||||
|
||||
void SimpleTargetRunner::stop()
|
||||
|
||||
Reference in New Issue
Block a user