|
|
@ -340,8 +340,6 @@ void TrackerList::showTrackerListMenu(QPoint) { |
|
|
|
if (!getSelectedTrackerItems().isEmpty()) { |
|
|
|
if (!getSelectedTrackerItems().isEmpty()) { |
|
|
|
delAct = menu.addAction(IconProvider::instance()->getIcon("list-remove"), tr("Remove tracker")); |
|
|
|
delAct = menu.addAction(IconProvider::instance()->getIcon("list-remove"), tr("Remove tracker")); |
|
|
|
} |
|
|
|
} |
|
|
|
menu.addSeparator(); |
|
|
|
|
|
|
|
QAction *reannounceAct = menu.addAction(IconProvider::instance()->getIcon("view-refresh"), tr("Force reannounce")); |
|
|
|
|
|
|
|
QAction *act = menu.exec(QCursor::pos()); |
|
|
|
QAction *act = menu.exec(QCursor::pos()); |
|
|
|
if (act == 0) return; |
|
|
|
if (act == 0) return; |
|
|
|
if (act == addAct) { |
|
|
|
if (act == addAct) { |
|
|
@ -352,10 +350,6 @@ void TrackerList::showTrackerListMenu(QPoint) { |
|
|
|
deleteSelectedTrackers(); |
|
|
|
deleteSelectedTrackers(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (act == reannounceAct) { |
|
|
|
|
|
|
|
properties->getCurrentTorrent().force_reannounce(); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void TrackerList::loadSettings() { |
|
|
|
void TrackerList::loadSettings() { |
|
|
|