forked from qt-creator/qt-creator
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: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user