From f3b36985ff0868c744fe5ecd20063b12a4057c65 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 25 Apr 2024 10:10:13 +0800 Subject: [PATCH] fix: unify path delimiter in output --- 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 273fb9dc..9037cd28 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 path+name+ext; + return QFileInfo{path+name+ext}.absoluteFilePath(); } else { - return path+fileInfo.completeBaseName()+ext; + return QFileInfo{path+fileInfo.completeBaseName()+ext}.absoluteFilePath(); } }