From 0be8e6ed0183285daf1781bcdd536a933ff82a2f Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Tue, 2 Apr 2024 12:47:28 +0200 Subject: [PATCH] ProjectExplorer: Always return a build folder The error handling is done elsewhere. Change-Id: Ie5fa937faf6447458117d355f1c6044c2f2d88ac Reviewed-by: hjk --- src/plugins/projectexplorer/buildconfiguration.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/plugins/projectexplorer/buildconfiguration.cpp b/src/plugins/projectexplorer/buildconfiguration.cpp index ee2d8208eb7..d8b19767303 100644 --- a/src/plugins/projectexplorer/buildconfiguration.cpp +++ b/src/plugins/projectexplorer/buildconfiguration.cpp @@ -625,16 +625,8 @@ FilePath BuildConfiguration::buildDirectoryFromTemplate(const FilePath &projectD auto buildDevice = BuildDeviceKitAspect::device(kit); - if (buildDir.isAbsolutePath()) { - bool isReachable = buildDevice->ensureReachable(buildDir); - if (!isReachable) - return {}; + if (buildDir.isAbsolutePath()) return buildDevice->rootPath().withNewMappedPath(buildDir); - } - - bool isReachable = buildDevice->ensureReachable(projectDir); - if (!isReachable) - return {}; const FilePath baseDir = buildDevice->rootPath().withNewMappedPath(projectDir); return baseDir.resolvePath(buildDir);