mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Fix build of v3.1.6
This commit is contained in:
@@ -426,10 +426,9 @@ void TrackerList::showTrackerListMenu(QPoint) {
|
|||||||
copyAct = menu.addAction(IconProvider::instance()->getIcon("edit-copy"), tr("Copy tracker url"));
|
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"));
|
editAct = menu.addAction(IconProvider::instance()->getIcon("edit-rename"),tr("Edit selected tracker URL"));
|
||||||
}
|
}
|
||||||
if (!h.is_paused()) {
|
if (!h.is_paused())
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
reannounceAct = menu.addAction(IconProvider::instance()->getIcon("view-refresh"), tr("Force reannounce to all trackers"));
|
|
||||||
}
|
|
||||||
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) {
|
||||||
@@ -444,10 +443,6 @@ void TrackerList::showTrackerListMenu(QPoint) {
|
|||||||
deleteSelectedTrackers();
|
deleteSelectedTrackers();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (act == reannounceAct) {
|
|
||||||
properties->getCurrentTorrent().force_reannounce();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (act == editAct) {
|
if (act == editAct) {
|
||||||
editSelectedTracker();
|
editSelectedTracker();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user