From 7a620c794d7bd3cc8de723ffa33e3783ef93fc94 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 24 Dec 2021 12:28:22 +0800 Subject: [PATCH] Fix garbage message when reporting error PR #15883. --- src/base/bittorrent/torrentimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/torrentimpl.cpp b/src/base/bittorrent/torrentimpl.cpp index 6819a2e99..83f133591 100644 --- a/src/base/bittorrent/torrentimpl.cpp +++ b/src/base/bittorrent/torrentimpl.cpp @@ -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) {