|
|
|
@ -417,6 +417,8 @@ void TrackerList::showTrackerListMenu(QPoint) {
@@ -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) {
@@ -431,6 +433,10 @@ void TrackerList::showTrackerListMenu(QPoint) {
|
|
|
|
|
deleteSelectedTrackers(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (act == reannounceAct) { |
|
|
|
|
properties->getCurrentTorrent().force_reannounce(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (act == editAct) { |
|
|
|
|
editSelectedTracker(); |
|
|
|
|
return; |
|
|
|
|