@@ -661,7 +661,6 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e)
661661 QAction *copy = new QAction (tr (" Copy" ), &menu);
662662 QAction *hide = new QAction (tr (" Hide" ), &menu);
663663 QAction *hideallid = new QAction (tr (" Hide all with id" ), &menu);
664- QAction *suppresshash = new QAction (tr (" Suppress hash" ), &menu);
665664 QAction *opencontainingfolder = new QAction (tr (" Open containing folder" ), &menu);
666665
667666 if (multipleSelection) {
@@ -679,11 +678,15 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e)
679678 menu.addSeparator ();
680679 menu.addAction (hide);
681680 menu.addAction (hideallid);
682- menu. addAction (suppresshash);
681+
683682 if (!bughunting) {
684683 QAction *suppress = new QAction (tr (" Suppress selected id(s)" ), &menu);
685684 menu.addAction (suppress);
686- connect (suppress, SIGNAL (triggered ()), this , SLOT (suppressSelectedIds ()));
685+ connect (suppress, &QAction::triggered, this , &ResultsTree::suppressSelectedIds);
686+ } else {
687+ QAction *suppress = new QAction (tr (" Suppress" ), &menu);
688+ menu.addAction (suppress);
689+ connect (suppress, &QAction::triggered, this , &ResultsTree::suppressHash);
687690 }
688691 menu.addSeparator ();
689692 menu.addAction (opencontainingfolder);
@@ -692,7 +695,6 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e)
692695 connect (copy, SIGNAL (triggered ()), this , SLOT (copy ()));
693696 connect (hide, SIGNAL (triggered ()), this , SLOT (hideResult ()));
694697 connect (hideallid, SIGNAL (triggered ()), this , SLOT (hideAllIdResult ()));
695- connect (suppresshash, &QAction::triggered, this , &ResultsTree::suppressHash);
696698 connect (opencontainingfolder, SIGNAL (triggered ()), this , SLOT (openContainingFolder ()));
697699
698700 const ProjectFile *currentProject = ProjectFile::getActiveProject ();
0 commit comments