mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Fix exception in tracker list when torrent has no metadata. The exeption was caught anyway but the trackers were not displayed
This commit is contained in:
parent
e142877e10
commit
fab58296af
1 changed files with 2 additions and 2 deletions
|
@ -142,13 +142,13 @@ public slots:
|
||||||
++nb_pex;
|
++nb_pex;
|
||||||
}
|
}
|
||||||
// load DHT information
|
// load DHT information
|
||||||
if(properties->getBTSession()->isDHTEnabled() && !h.priv()) {
|
if(properties->getBTSession()->isDHTEnabled() && h.has_metadata() && !h.priv()) {
|
||||||
dht_item->setText(COL_STATUS, tr("Working"));
|
dht_item->setText(COL_STATUS, tr("Working"));
|
||||||
} else {
|
} else {
|
||||||
dht_item->setText(COL_STATUS, tr("Disabled"));
|
dht_item->setText(COL_STATUS, tr("Disabled"));
|
||||||
}
|
}
|
||||||
dht_item->setText(COL_PEERS, QString::number(nb_dht));
|
dht_item->setText(COL_PEERS, QString::number(nb_dht));
|
||||||
if(h.priv()) {
|
if(h.has_metadata() && h.priv()) {
|
||||||
dht_item->setText(COL_MSG, tr("This torrent is private"));
|
dht_item->setText(COL_MSG, tr("This torrent is private"));
|
||||||
}
|
}
|
||||||
// Load PeX Information
|
// Load PeX Information
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue