diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-01-23 13:13:05 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-01-23 13:13:14 +0100 |
commit | b1e2d5b693e3061d0cfcd7a636db53722086c452 (patch) | |
tree | 3c734b37c1e5c0a23ca4fb885129d15c85018acd /src/shared | |
parent | 7cfbcb41b9f4b227eaeae9028d4e2ee35b5547da (diff) | |
parent | 014167c8e8fe642874a330ae41a444e6f3ed73a9 (diff) |
Merge remote-tracking branch 'origin/4.2'
Change-Id: Ib3073a0a3d80c99cf97b9839480dbf9583fa10de
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/proparser/profileevaluator.cpp | 11 | ||||
m--------- | src/shared/qbs | 0 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp index f60c6afa2c..99f4fe0262 100644 --- a/src/shared/proparser/profileevaluator.cpp +++ b/src/shared/proparser/profileevaluator.cpp @@ -83,7 +83,7 @@ QVector<ProFileEvaluator::SourceFile> ProFileEvaluator::fixifiedValues( foreach (const ProString &str, d->values(ProKey(variable))) { const QString &el = d->m_option->expandEnvVars(str.toQString()); if (IoUtils::isAbsolutePath(el)) { - result << SourceFile{ el, str.sourceFile() }; + result << SourceFile{ QDir::cleanPath(el), str.sourceFile() }; } else { QString fn = QDir::cleanPath(baseDirectory + QLatin1Char('/') + el); if (IoUtils::exists(fn)) @@ -132,16 +132,17 @@ QVector<ProFileEvaluator::SourceFile> ProFileEvaluator::absoluteFileValues( const QString &el = d->m_option->expandEnvVars(str.toQString()); QString absEl; if (IoUtils::isAbsolutePath(el)) { - if (m_vfs->exists(el, flags)) { - result << SourceFile{ el, str.sourceFile() }; + QString fn = QDir::cleanPath(el); + if (m_vfs->exists(fn, flags)) { + result << SourceFile{ fn, str.sourceFile() }; goto next; } - absEl = el; + absEl = fn; } else { foreach (const QString &dir, searchDirs) { QString fn = QDir::cleanPath(dir + QLatin1Char('/') + el); if (m_vfs->exists(fn, flags)) { - result << SourceFile{ QDir::cleanPath(fn), str.sourceFile() }; + result << SourceFile{ fn, str.sourceFile() }; goto next; } } diff --git a/src/shared/qbs b/src/shared/qbs -Subproject a64a0ef5fc454b18a9474b39517a100d8f1fdf3 +Subproject 3fec40fad03aa1c4c7bb85a435c6aa9abe3a6bb |