PeX status is now correctly reported

This commit is contained in:
Christophe Dumez
2010-06-27 21:07:12 +00:00
parent 4efae21f1d
commit 32d3ed2144
4 changed files with 11 additions and 1 deletions

View File

@@ -210,7 +210,10 @@ void TrackerList::loadStickyItems(const QTorrentHandle &h) {
dht_item->setText(COL_MSG, tr("This torrent is private"));
}
// Load PeX Information
pex_item->setText(COL_STATUS, tr("Working"));
if(properties->getBTSession()->isPexEnabled())
pex_item->setText(COL_STATUS, tr("Working"));
else
pex_item->setText(COL_STATUS, tr("Disabled"));
pex_item->setText(COL_PEERS, QString::number(nb_pex));
// Load LSD Information
if(properties->getBTSession()->isLSDEnabled())