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:
Jarek Kobus
2022-02-23 14:41:23 +01:00
parent 10abf43afa
commit 3f259da6d5
4 changed files with 10 additions and 18 deletions

View File

@@ -125,10 +125,7 @@ void CallgrindController::run(Option option)
Runnable controller = m_valgrindRunnable;
controller.command.setExecutable(FilePath::fromString(CALLGRIND_CONTROL_BINARY));
controller.command.setArguments(QString("%1 %2").arg(toOptionString(option)).arg(m_pid));
if (m_valgrindRunnable.device
&& m_valgrindRunnable.device->type() != ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) {
controller.device = m_valgrindRunnable.device;
}
controller.device = m_valgrindRunnable.device;
m_controllerProcess->setRunnable(controller);
m_controllerProcess->start();
}