Reorder and rename Tracker list context menu option

Adds an ellipses to indicate that the Edit option opens a dialog. Also moves Edit to top of the list to convey action's prominence.
This commit is contained in:
Thomas Piccirello 2018-09-02 02:55:12 -04:00
parent b481787574
commit c89e9d4354

View File

@ -534,9 +534,9 @@ void TrackerListWidget::showTrackerListMenu(QPoint)
QAction *delAct = nullptr; QAction *delAct = nullptr;
QAction *editAct = nullptr; QAction *editAct = nullptr;
if (!getSelectedTrackerItems().isEmpty()) { if (!getSelectedTrackerItems().isEmpty()) {
editAct = menu.addAction(GuiIconProvider::instance()->getIcon("edit-rename"),tr("Edit tracker URL..."));
delAct = menu.addAction(GuiIconProvider::instance()->getIcon("list-remove"), tr("Remove tracker")); delAct = menu.addAction(GuiIconProvider::instance()->getIcon("list-remove"), tr("Remove tracker"));
copyAct = menu.addAction(GuiIconProvider::instance()->getIcon("edit-copy"), tr("Copy tracker URL")); copyAct = menu.addAction(GuiIconProvider::instance()->getIcon("edit-copy"), tr("Copy tracker URL"));
editAct = menu.addAction(GuiIconProvider::instance()->getIcon("edit-rename"),tr("Edit selected tracker URL"));
} }
QAction *reannounceSelAct = nullptr; QAction *reannounceSelAct = nullptr;
QAction *reannounceAllAct = nullptr; QAction *reannounceAllAct = nullptr;