Fix DHT wrongly reported as disabled for magnet links (closes #987340)

This commit is contained in:
Christophe Dumez 2012-07-14 17:39:39 +03:00
parent 17b7ff3fd2
commit 8b53028828

View file

@ -202,7 +202,7 @@ void TrackerList::loadStickyItems(const QTorrentHandle &h) {
++nb_pex;
}
// load DHT information
if(QBtSession::instance()->isDHTEnabled() && h.has_metadata() && !h.priv()) {
if (QBtSession::instance()->isDHTEnabled() && !h.priv()) {
dht_item->setText(COL_STATUS, tr("Working"));
} else {
dht_item->setText(COL_STATUS, tr("Disabled"));