mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Don't use removed QTextStream::setCodec()
QTextStream encodes as UTF-8 by default.
This commit is contained in:
parent
a8127d6102
commit
561fbf2cca
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue