forked from qt-creator/qt-creator
ProjectExplorer: Remove one use of Runnable::device
Change-Id: I0cbaf3ab73687adf11966bc291be27171e50b232 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -333,7 +333,8 @@ static bool canOpenTerminalWithRunEnv(const Project *project, const ProjectNode
|
|||||||
const RunConfiguration * const runConfig = runConfigForNode(target, node);
|
const RunConfiguration * const runConfig = runConfigForNode(target, node);
|
||||||
if (!runConfig)
|
if (!runConfig)
|
||||||
return false;
|
return false;
|
||||||
IDevice::ConstPtr device = runConfig->runnable().device;
|
IDevice::ConstPtr device
|
||||||
|
= DeviceManager::deviceForPath(runConfig->runnable().command.executable());
|
||||||
if (!device)
|
if (!device)
|
||||||
device = DeviceKitAspect::device(target->kit());
|
device = DeviceKitAspect::device(target->kit());
|
||||||
return device && device->canOpenTerminal();
|
return device && device->canOpenTerminal();
|
||||||
|
Reference in New Issue
Block a user