summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectexplorer.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-05-25 14:19:27 +0200
committerhjk <hjk@qt.io>2022-05-30 10:49:44 +0000
commit4520f93f2e6ffb4ed1de915aebe2e68f772f6ffd (patch)
tree51a2fd6078394449c42732828e8e1282762e5827 /src/plugins/projectexplorer/projectexplorer.cpp
parent3653456c4f65a6b02a6952aaf3369c3c0e3836c2 (diff)
downloadqt-creator-4520f93f2e6ffb4ed1de915aebe2e68f772f6ffd.tar.gz
ProjectExplorer: Replace remaining uses of Runnable::device
Change-Id: I2d42269eb6ad971fcedb118acb7e6e1dfbff83b2 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/projectexplorer/projectexplorer.cpp')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index 0eb1265073..df8a4b35c9 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -3935,7 +3935,7 @@ void ProjectExplorerPluginPrivate::openTerminalHereWithRunEnv()
QTC_ASSERT(runConfig, return);
const Runnable runnable = runConfig->runnable();
- IDevice::ConstPtr device = runnable.device;
+ IDevice::ConstPtr device = DeviceManager::deviceForPath(runnable.command.executable());
if (!device)
device = DeviceKitAspect::device(target->kit());
QTC_ASSERT(device && device->canOpenTerminal(), return);