fix: unify path delimiter in output

This commit is contained in:
Roy Qu 2024-04-25 10:10:13 +08:00
parent 30693baa9e
commit f3b36985ff
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}