From c699249bc4f583db91a9487405ebbf544a3a6986 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Thu, 17 Nov 2022 11:34:41 +0100 Subject: [PATCH] QMake: Fix path cleaning The .pro file path is QString compared when trying to import an existing buildfolder. This broke since resolvePath() does not necessarily clean the path anymore. Fixes: QTCREATORBUG-28409 Change-Id: I10286f086762b8f8dd9020aa4003317ff6180e12 Reviewed-by: Reviewed-by: Christian Kandeler --- src/plugins/qmakeprojectmanager/makefileparse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmakeprojectmanager/makefileparse.cpp b/src/plugins/qmakeprojectmanager/makefileparse.cpp index c24450a5105..bd0f8f657ff 100644 --- a/src/plugins/qmakeprojectmanager/makefileparse.cpp +++ b/src/plugins/qmakeprojectmanager/makefileparse.cpp @@ -252,7 +252,7 @@ MakeFileParse::MakeFileParse(const FilePath &makefile, Mode mode) : m_mode(mode) project = project.trimmed(); // Src Pro file - m_srcProFile = makefile.parentDir().resolvePath(project); + m_srcProFile = makefile.parentDir().resolvePath(project).cleanPath(); qCDebug(logging()) << " source .pro file:" << m_srcProFile; QString command = findQMakeLine(makefile, QLatin1String("# Command:")).trimmed();