1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

Fix garbage message when reporting error

PR #15883.
This commit is contained in:
Chocobo1 2021-12-24 12:28:22 +08:00 committed by GitHub
parent cc13f3e10d
commit 7a620c794d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -991,7 +991,7 @@ int TorrentImpl::queuePosition() const
QString TorrentImpl::error() const QString TorrentImpl::error() const
{ {
if (m_nativeStatus.errc) if (m_nativeStatus.errc)
return QString::fromStdString(m_nativeStatus.errc.message()); return QString::fromLocal8Bit(m_nativeStatus.errc.message().c_str());
if (m_nativeStatus.flags & lt::torrent_flags::upload_mode) if (m_nativeStatus.flags & lt::torrent_flags::upload_mode)
{ {