From c7f88ced89dc0f23c2ad1b6c31f89982bba90f68 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 8 Dec 2023 13:41:24 +0100 Subject: [PATCH] ProjectExplorer: Fix FilePath construction for git paths Change-Id: If29c0afcd41789ded5eccc6e098b3fadb390287d Reviewed-by: Reviewed-by: Qt CI Bot Reviewed-by: hjk --- src/plugins/projectexplorer/projectexplorer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 98c8690900c..a2fbb7cb288 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -2098,7 +2098,7 @@ void ProjectExplorerPlugin::extensionsInitialized() const QStringList rawGitSearchPaths = ICore::settings()->value("Git/Path") .toString().split(':', Qt::SkipEmptyParts); const FilePaths gitSearchPaths = Utils::transform(rawGitSearchPaths, - [](const QString &rawPath) { return FilePath::fromString(rawPath); }); + [](const QString &rawPath) { return FilePath::fromUserInput(rawPath); }); const FilePath fullGitPath = Environment::systemEnvironment() .searchInPath(gitBinary, gitSearchPaths); if (!fullGitPath.isEmpty()) {