Browse Source

Fix garbage message when reporting error

PR #15883.
adaptive-webui-19844
Chocobo1 3 years ago committed by GitHub
parent
commit
7a620c794d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/bittorrent/torrentimpl.cpp

2
src/base/bittorrent/torrentimpl.cpp

@ -991,7 +991,7 @@ int TorrentImpl::queuePosition() const @@ -991,7 +991,7 @@ int TorrentImpl::queuePosition() const
QString TorrentImpl::error() const
{
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)
{

Loading…
Cancel
Save