mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Reannounce DHT when reannouncing all trackers
This matches the behavior exhibited by `TrackerListWidget` when reannouncing to a torrent's complete tracker list.
This commit is contained in:
parent
f5a93be544
commit
bd4390b052
2 changed files with 8 additions and 1 deletions
|
@ -649,7 +649,10 @@ void TransferListWidget::recheckSelectedTorrents()
|
||||||
void TransferListWidget::reannounceSelectedTorrents()
|
void TransferListWidget::reannounceSelectedTorrents()
|
||||||
{
|
{
|
||||||
for (BitTorrent::Torrent *const torrent : asConst(getSelectedTorrents()))
|
for (BitTorrent::Torrent *const torrent : asConst(getSelectedTorrents()))
|
||||||
|
{
|
||||||
torrent->forceReannounce();
|
torrent->forceReannounce();
|
||||||
|
torrent->forceDHTAnnounce();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int TransferListWidget::visibleColumnsCount() const
|
int TransferListWidget::visibleColumnsCount() const
|
||||||
|
|
|
@ -1620,7 +1620,11 @@ void TorrentsController::reannounceAction()
|
||||||
requireParams({u"hashes"_s});
|
requireParams({u"hashes"_s});
|
||||||
|
|
||||||
const QStringList hashes {params()[u"hashes"_s].split(u'|')};
|
const QStringList hashes {params()[u"hashes"_s].split(u'|')};
|
||||||
applyToTorrents(hashes, [](BitTorrent::Torrent *const torrent) { torrent->forceReannounce(); });
|
applyToTorrents(hashes, [](BitTorrent::Torrent *const torrent)
|
||||||
|
{
|
||||||
|
torrent->forceReannounce();
|
||||||
|
torrent->forceDHTAnnounce();
|
||||||
|
});
|
||||||
|
|
||||||
setResult(QString());
|
setResult(QString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue