- Improve tracker status detection when using libtorrent v0.14

This commit is contained in:
Christophe Dumez 2009-11-23 07:18:28 +00:00
parent 2f4d27b422
commit c52e0cf841
3 changed files with 19 additions and 7 deletions

View file

@ -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));