diff options
author | hjk <[email protected]> | 2021-05-19 10:35:44 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2021-05-19 13:02:13 +0000 |
commit | 2e2d1835d1eaa6620c7d4d5656ccddba95e3373e (patch) | |
tree | bdcbbdd23afada03bebd3b76221a56d379c22720 /src/libs/utils/fileutils.cpp | |
parent | a71bb366823a7f2beb3fb16445233670feb8f1e7 (diff) |
Utils: Make FilePath::operator+() work with remote paths
Change-Id: I1f0963b4da8c000fa1ea709d358490cb8f986ee5
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/libs/utils/fileutils.cpp')
-rw-r--r-- | src/libs/utils/fileutils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 |