ProjectExplorer: Fix build device retrieval in BuildDirectoryAspect

Change-Id: I40aeb4a775a99df7395f4c23476bae7f98201b69
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2022-11-07 12:34:58 +01:00
parent f27d5b8784
commit 993815cb06

View File

@@ -50,7 +50,7 @@ BuildDirectoryAspect::BuildDirectoryAspect(const BuildConfiguration *bc)
edit->setText(fixedDir.toUserOutput());
const FilePath newPath = FilePath::fromUserInput(edit->text());
const auto buildDevice = DeviceKitAspect::device(d->target->kit());
const auto buildDevice = BuildDeviceKitAspect::device(d->target->kit());
if (buildDevice && buildDevice->type() != ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE
&& !buildDevice->rootPath().ensureReachable(newPath)) {