From 87e39c6564050f1c7642583e667210e80ee9025a Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 25 Apr 2024 21:47:19 +0800 Subject: [PATCH] fix: error in changeFileExt --- libs/redpanda_qt_utils/qt_utils/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/redpanda_qt_utils/qt_utils/utils.cpp b/libs/redpanda_qt_utils/qt_utils/utils.cpp index 7de27767..3e8722dd 100644 --- a/libs/redpanda_qt_utils/qt_utils/utils.cpp +++ b/libs/redpanda_qt_utils/qt_utils/utils.cpp @@ -539,9 +539,9 @@ QString changeFileExt(const QString& filename, QString ext) path = includeTrailingPathDelimiter(fileInfo.path()); } if (suffix.isEmpty()) { - return QFileInfo{path+name+ext}.absoluteFilePath(); + return path+name+ext; } else { - return QFileInfo{path+fileInfo.completeBaseName()+ext}.absoluteFilePath(); + return path+fileInfo.completeBaseName()+ext; } }