1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Visually show that the private flag are respected and that PEX/DHT/LSD is disabled. Closes #880.

This commit is contained in:
sledgehammer999 2013-09-01 22:28:57 +03:00
parent 04430a4cdd
commit 4f8ccd0dfc

View File

@ -205,13 +205,13 @@ void TrackerList::loadStickyItems(const QTorrentHandle &h) {
}
// Load PeX Information
if (QBtSession::instance()->isPexEnabled())
if (QBtSession::instance()->isPexEnabled() && !h.priv())
pex_item->setText(COL_STATUS, tr("Working"));
else
pex_item->setText(COL_STATUS, tr("Disabled"));
// Load LSD Information
if (QBtSession::instance()->isLSDEnabled())
if (QBtSession::instance()->isLSDEnabled() && !h.priv())
lsd_item->setText(COL_STATUS, tr("Working"));
else
lsd_item->setText(COL_STATUS, tr("Disabled"));