mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
committed by
GitHub
parent
bf86592e8c
commit
66f3cf7e67
@@ -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
|
||||||
|
|||||||
@@ -1171,9 +1171,7 @@ void TorrentsController::editTrackerAction()
|
|||||||
throw APIError(APIErrorType::Conflict, u"Tracker not found"_s);
|
throw APIError(APIErrorType::Conflict, u"Tracker not found"_s);
|
||||||
|
|
||||||
torrent->replaceTrackers(entries);
|
torrent->replaceTrackers(entries);
|
||||||
|
torrent->forceReannounce();
|
||||||
if (!torrent->isStopped())
|
|
||||||
torrent->forceReannounce();
|
|
||||||
|
|
||||||
setResult(QString());
|
setResult(QString());
|
||||||
}
|
}
|
||||||
@@ -1620,7 +1618,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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user