GUI: Only suppress warnings by hash during bug hunting
This commit is contained in:
parent
aad455e1ea
commit
ca1fcfa8bc
|
@ -661,7 +661,6 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e)
|
||||||
QAction *copy = new QAction(tr("Copy"), &menu);
|
QAction *copy = new QAction(tr("Copy"), &menu);
|
||||||
QAction *hide = new QAction(tr("Hide"), &menu);
|
QAction *hide = new QAction(tr("Hide"), &menu);
|
||||||
QAction *hideallid = new QAction(tr("Hide all with id"), &menu);
|
QAction *hideallid = new QAction(tr("Hide all with id"), &menu);
|
||||||
QAction *suppresshash = new QAction(tr("Suppress hash"), &menu);
|
|
||||||
QAction *opencontainingfolder = new QAction(tr("Open containing folder"), &menu);
|
QAction *opencontainingfolder = new QAction(tr("Open containing folder"), &menu);
|
||||||
|
|
||||||
if (multipleSelection) {
|
if (multipleSelection) {
|
||||||
|
@ -679,11 +678,15 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e)
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
menu.addAction(hide);
|
menu.addAction(hide);
|
||||||
menu.addAction(hideallid);
|
menu.addAction(hideallid);
|
||||||
menu.addAction(suppresshash);
|
|
||||||
if (!bughunting) {
|
if (!bughunting) {
|
||||||
QAction *suppress = new QAction(tr("Suppress selected id(s)"), &menu);
|
QAction *suppress = new QAction(tr("Suppress selected id(s)"), &menu);
|
||||||
menu.addAction(suppress);
|
menu.addAction(suppress);
|
||||||
connect(suppress, SIGNAL(triggered()), this, SLOT(suppressSelectedIds()));
|
connect(suppress, &QAction::triggered, this, &ResultsTree::suppressSelectedIds);
|
||||||
|
} else {
|
||||||
|
QAction *suppress = new QAction(tr("Suppress"), &menu);
|
||||||
|
menu.addAction(suppress);
|
||||||
|
connect(suppress, &QAction::triggered, this, &ResultsTree::suppressHash);
|
||||||
}
|
}
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
menu.addAction(opencontainingfolder);
|
menu.addAction(opencontainingfolder);
|
||||||
|
@ -692,7 +695,6 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e)
|
||||||
connect(copy, SIGNAL(triggered()), this, SLOT(copy()));
|
connect(copy, SIGNAL(triggered()), this, SLOT(copy()));
|
||||||
connect(hide, SIGNAL(triggered()), this, SLOT(hideResult()));
|
connect(hide, SIGNAL(triggered()), this, SLOT(hideResult()));
|
||||||
connect(hideallid, SIGNAL(triggered()), this, SLOT(hideAllIdResult()));
|
connect(hideallid, SIGNAL(triggered()), this, SLOT(hideAllIdResult()));
|
||||||
connect(suppresshash, &QAction::triggered, this, &ResultsTree::suppressHash);
|
|
||||||
connect(opencontainingfolder, SIGNAL(triggered()), this, SLOT(openContainingFolder()));
|
connect(opencontainingfolder, SIGNAL(triggered()), this, SLOT(openContainingFolder()));
|
||||||
|
|
||||||
const ProjectFile *currentProject = ProjectFile::getActiveProject();
|
const ProjectFile *currentProject = ProjectFile::getActiveProject();
|
||||||
|
|
Loading…
Reference in New Issue