mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 03:14:44 +00:00
Don't use removed QTextStream::setCodec()
QTextStream encodes as UTF-8 by default.
This commit is contained in:
parent
a8127d6102
commit
561fbf2cca
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user