From fc3da963d2baf86a8594fab393eba7faa785ca5d Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 23 Oct 2013 23:30:12 +0300 Subject: [PATCH] Revert "Remove "Force reannounce" action". Closes #958. --- src/properties/trackerlist.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/properties/trackerlist.cpp b/src/properties/trackerlist.cpp index a0ed5c189..6134cbbab 100644 --- a/src/properties/trackerlist.cpp +++ b/src/properties/trackerlist.cpp @@ -417,6 +417,8 @@ void TrackerList::showTrackerListMenu(QPoint) { copyAct = menu.addAction(IconProvider::instance()->getIcon("edit-copy"), tr("Copy tracker url")); editAct = menu.addAction(IconProvider::instance()->getIcon("edit-rename"),tr("Edit selected tracker URL")); } + menu.addSeparator(); + QAction *reannounceAct = menu.addAction(IconProvider::instance()->getIcon("view-refresh"), tr("Force reannounce to all trackers")); QAction *act = menu.exec(QCursor::pos()); if (act == 0) return; if (act == addAct) { @@ -431,6 +433,10 @@ void TrackerList::showTrackerListMenu(QPoint) { deleteSelectedTrackers(); return; } + if (act == reannounceAct) { + properties->getCurrentTorrent().force_reannounce(); + return; + } if (act == editAct) { editSelectedTracker(); return;