diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-10-14 15:25:24 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-10-15 14:57:38 +0000 |
commit | 13bca02801536124c833b02ce199fd7013e288b4 (patch) | |
tree | 0cc9eafb31a80cfd904935bba45ff8a4538bf4ba /src/libs/utils/outputformatter.cpp | |
parent | a746510937d259a20a785a508741e1d659456dfe (diff) |
ProjectExplorer: Clean paths in OutputLineParser::absoluteFilePath()
Fixes: QTCREATORBUG-26422
Change-Id: I350bbd076007647c4de21db08f2b034d654eb812
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/utils/outputformatter.cpp')
-rw-r--r-- | src/libs/utils/outputformatter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/utils/outputformatter.cpp b/src/libs/utils/outputformatter.cpp index 4efcae7646..cf6930cbe5 100644 --- a/src/libs/utils/outputformatter.cpp +++ b/src/libs/utils/outputformatter.cpp @@ -136,8 +136,10 @@ bool OutputLineParser::demoteErrorsToWarnings() const FilePath OutputLineParser::absoluteFilePath(const FilePath &filePath) const { - if (filePath.isEmpty() || filePath.toFileInfo().isAbsolute()) + if (filePath.isEmpty()) return filePath; + if (filePath.toFileInfo().isAbsolute()) + return filePath.cleanPath(); FilePaths candidates; for (const FilePath &dir : searchDirectories()) { FilePath candidate = dir.pathAppended(filePath.toString()); |