mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
- Improve tracker status detection when using libtorrent v0.14
This commit is contained in:
parent
2f4d27b422
commit
c52e0cf841
3 changed files with 19 additions and 7 deletions
|
@ -201,10 +201,13 @@ public slots:
|
|||
}
|
||||
}
|
||||
#else
|
||||
if(error_message.isEmpty() || data.simply_warning) {
|
||||
if(data.verified) {
|
||||
item->setText(COL_STATUS, tr("Working"));
|
||||
} else {
|
||||
item->setText(COL_STATUS, tr("Not working"));
|
||||
if(data.fail_count > 0)
|
||||
item->setText(COL_STATUS, tr("Not working"));
|
||||
else
|
||||
item->setText(COL_STATUS, tr("Not contacted yet"));
|
||||
}
|
||||
#endif
|
||||
item->setText(COL_PEERS, QString::number(trackers_data.value(tracker_url, TrackerInfos(tracker_url)).num_peers));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue