mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Fix displayed tracker messages
Before this change, we were displaying debug messages constructed by libtorrent, now we show messages returned by trackers. Closes #8739.
This commit is contained in:
committed by
sledgehammer999
parent
a37dfcf961
commit
b396ca771d
@@ -1509,7 +1509,7 @@ void TorrentHandle::handleTrackerWarningAlert(const libtorrent::tracker_warning_
|
||||
const QString message = QString::fromStdString(p->msg);
|
||||
#else
|
||||
const QString trackerUrl = p->tracker_url();
|
||||
const QString message = QString::fromStdString(p->message());
|
||||
const QString message = p->warning_message();
|
||||
#endif
|
||||
|
||||
// Connection was successful now but there is a warning message
|
||||
@@ -1525,7 +1525,7 @@ void TorrentHandle::handleTrackerErrorAlert(const libtorrent::tracker_error_aler
|
||||
const QString message = QString::fromStdString(p->msg);
|
||||
#else
|
||||
const QString trackerUrl = p->tracker_url();
|
||||
const QString message = QString::fromStdString(p->message());
|
||||
const QString message = p->error_message();
|
||||
#endif
|
||||
|
||||
m_trackerInfos[trackerUrl].lastMessage = message;
|
||||
|
||||
Reference in New Issue
Block a user