mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
commit
d3bdb52b8f
1 changed files with 5 additions and 1 deletions
|
@ -407,7 +407,6 @@ void TrackerList::editSelectedTracker() {
|
||||||
h.replace_trackers(trackers);
|
h.replace_trackers(trackers);
|
||||||
if (!h.is_paused()) {
|
if (!h.is_paused()) {
|
||||||
h.force_reannounce();
|
h.force_reannounce();
|
||||||
h.force_dht_announce();
|
|
||||||
}
|
}
|
||||||
} catch(invalid_handle&) {
|
} catch(invalid_handle&) {
|
||||||
return;
|
return;
|
||||||
|
@ -428,6 +427,10 @@ void TrackerList::reannounceSelected() {
|
||||||
std::vector<announce_entry> trackers = h.trackers();
|
std::vector<announce_entry> trackers = h.trackers();
|
||||||
for (size_t i = 0; i < trackers.size(); ++i) {
|
for (size_t i = 0; i < trackers.size(); ++i) {
|
||||||
foreach (QTreeWidgetItem* w, selected_items) {
|
foreach (QTreeWidgetItem* w, selected_items) {
|
||||||
|
if (w == dht_item) {
|
||||||
|
h.force_dht_announce();
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (w->text(COL_URL) == misc::toQString(trackers[i].url)) {
|
if (w->text(COL_URL) == misc::toQString(trackers[i].url)) {
|
||||||
h.force_reannounce(0, i);
|
h.force_reannounce(0, i);
|
||||||
break;
|
break;
|
||||||
|
@ -491,6 +494,7 @@ void TrackerList::showTrackerListMenu(QPoint) {
|
||||||
#endif
|
#endif
|
||||||
if (act == reannounceAct) {
|
if (act == reannounceAct) {
|
||||||
properties->getCurrentTorrent().force_reannounce();
|
properties->getCurrentTorrent().force_reannounce();
|
||||||
|
properties->getCurrentTorrent().force_dht_announce();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (act == editAct) {
|
if (act == editAct) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue