From a060ea2ec814791a6ee378a09a3253961f4305c9 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 13 Sep 2021 11:50:31 +0200 Subject: [PATCH] FilePath: Fix fromStringWithExtension Amends a04e1eaf844abefc597cabe53d2b90611b1b7831 Change-Id: I440e8b79d52f0a77ef1ee1aae278c34e815e877a Reviewed-by: hjk Reviewed-by: David Schulz --- src/libs/utils/filepath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/utils/filepath.cpp b/src/libs/utils/filepath.cpp index dcc5c6fac6a..e5e4b97cd3e 100644 --- a/src/libs/utils/filepath.cpp +++ b/src/libs/utils/filepath.cpp @@ -911,8 +911,8 @@ FilePath FilePath::fromStringWithExtension(const QString &filepath, const QStrin const QChar dot = QLatin1Char('.'); if (!rc.fileName().contains(dot)) { if (!defaultExtension.startsWith(dot)) - rc.stringAppended(dot); - rc.stringAppended(defaultExtension); + rc = rc.stringAppended(dot); + rc = rc.stringAppended(defaultExtension); } return rc; }