diff --git a/src/libs/utils/filepath.cpp b/src/libs/utils/filepath.cpp index 0362bc45761..c70848955f6 100644 --- a/src/libs/utils/filepath.cpp +++ b/src/libs/utils/filepath.cpp @@ -1705,8 +1705,9 @@ QString FilePath::withTildeHomePath() const QString outPath = cleanPath().absoluteFilePath().path(); if (outPath.startsWith(homePath)) - outPath = '~' + outPath.mid(homePath.size()); - return outPath; + return '~' + outPath.mid(homePath.size()); + + return toString(); } QTextStream &operator<<(QTextStream &s, const FilePath &fn)