diff --git a/src/common/filesystembase.cpp b/src/common/filesystembase.cpp index c6faf1468c..c6dcb49d1c 100644 --- a/src/common/filesystembase.cpp +++ b/src/common/filesystembase.cpp @@ -543,7 +543,7 @@ bool FileSystem::remove(const QString &fileName, QString *errorString) #endif try { - if (!std::filesystem::remove(std::filesystem::path{fileName.toUtf8().data()})) { + if (!std::filesystem::remove(std::filesystem::path{fileName.toStdWString()})) { if (errorString) { *errorString = QObject::tr("File is already deleted"); }