forked from qt-creator/qt-creator
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:
@@ -50,7 +50,7 @@ BuildDirectoryAspect::BuildDirectoryAspect(const BuildConfiguration *bc)
|
|||||||
edit->setText(fixedDir.toUserOutput());
|
edit->setText(fixedDir.toUserOutput());
|
||||||
|
|
||||||
const FilePath newPath = FilePath::fromUserInput(edit->text());
|
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
|
if (buildDevice && buildDevice->type() != ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE
|
||||||
&& !buildDevice->rootPath().ensureReachable(newPath)) {
|
&& !buildDevice->rootPath().ensureReachable(newPath)) {
|
||||||
|
Reference in New Issue
Block a user