From 2e2d1835d1eaa6620c7d4d5656ccddba95e3373e Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 19 May 2021 10:35:44 +0200 Subject: [PATCH] Utils: Make FilePath::operator+() work with remote paths Change-Id: I1f0963b4da8c000fa1ea709d358490cb8f986ee5 Reviewed-by: Eike Ziller --- src/libs/utils/fileutils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/utils/fileutils.cpp b/src/libs/utils/fileutils.cpp index 348386e550c..2cc227c5729 100644 --- a/src/libs/utils/fileutils.cpp +++ b/src/libs/utils/fileutils.cpp @@ -1043,7 +1043,9 @@ bool FilePath::operator>=(const FilePath &other) const FilePath FilePath::operator+(const QString &s) const { - return FilePath::fromString(m_data + s); + FilePath res = *this; + res.m_data += s; + return res; } /// \returns whether FilePath is a child of \a s