diff --git a/src/app/filelogger.cpp b/src/app/filelogger.cpp index 743c9bcad..143bc287b 100644 --- a/src/app/filelogger.cpp +++ b/src/app/filelogger.cpp @@ -126,7 +126,9 @@ void FileLogger::addLogMessage(const Log::Msg &msg) if (!m_logFile.isOpen()) return; QTextStream stream(&m_logFile); +#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) stream.setCodec("UTF-8"); +#endif switch (msg.type) {