mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 21:28:07 -06:00
PeX status is now correctly reported
This commit is contained in:
@@ -210,6 +210,10 @@ ScanFoldersModel* Bittorrent::getScanFoldersModel() const {
|
||||
return m_scanFolders;
|
||||
}
|
||||
|
||||
bool Bittorrent::isPexEnabled() const {
|
||||
return PeXEnabled;
|
||||
}
|
||||
|
||||
void Bittorrent::processBigRatios() {
|
||||
if(ratio_limit <= 0) return;
|
||||
qDebug("Process big ratios...");
|
||||
|
||||
@@ -118,6 +118,7 @@ public:
|
||||
bool useTemporaryFolder() const;
|
||||
QString getDefaultSavePath() const;
|
||||
ScanFoldersModel* getScanFoldersModel() const;
|
||||
bool isPexEnabled() const;
|
||||
#if LIBTORRENT_VERSION_MINOR < 15
|
||||
void saveDHTEntry();
|
||||
#endif
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user