diff --git a/UI/log-viewer.cpp b/UI/log-viewer.cpp index ca3e4c00b..0ce2acca3 100644 --- a/UI/log-viewer.cpp +++ b/UI/log-viewer.cpp @@ -101,9 +101,7 @@ void OBSLogViewer::InitLog() if (file.open(QIODevice::ReadOnly)) { QTextStream in(&file); -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) - in.setEncoding(QStringConverter::Utf8); -#else +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) in.setCodec("UTF-8"); #endif