From 67fdb23001553b73568e21c4abd389af81b1cafa Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 25 May 2022 13:43:05 +0200 Subject: [PATCH] ProjectExplorer: Remove one use of Runnable::device Change-Id: I0cbaf3ab73687adf11966bc291be27171e50b232 Reviewed-by: Jarek Kobus Reviewed-by: Qt CI Bot --- src/plugins/projectexplorer/projectexplorer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index df8a4b35c97..99b8f691f04 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -333,7 +333,8 @@ static bool canOpenTerminalWithRunEnv(const Project *project, const ProjectNode const RunConfiguration * const runConfig = runConfigForNode(target, node); if (!runConfig) return false; - IDevice::ConstPtr device = runConfig->runnable().device; + IDevice::ConstPtr device + = DeviceManager::deviceForPath(runConfig->runnable().command.executable()); if (!device) device = DeviceKitAspect::device(target->kit()); return device && device->canOpenTerminal();