diff --git a/src/report_modules/report_module_gui/src/ui/c_checker_widget.cpp b/src/report_modules/report_module_gui/src/ui/c_checker_widget.cpp index 1372d667..d0518174 100644 --- a/src/report_modules/report_module_gui/src/ui/c_checker_widget.cpp +++ b/src/report_modules/report_module_gui/src/ui/c_checker_widget.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -262,6 +263,25 @@ void cCheckerWidget::LoadIssues(std::list issues) const ShowIssue(firstIssue, nullptr); } + if (issues.size() == 0) + { + QTreeWidgetItem *newItem = new QTreeWidgetItem(_issueBox); + + newItem->setToolTip(0, "Identifier"); + newItem->setText(0, QString("-")); + newItem->setText(1, QString("-")); + newItem->setText(2, QString("-")); + newItem->setText(3, QString("No Issues Found")); + _issueBox->setItemSelected(newItem, true); + _issueDetailsTextWidget->setText(QString("No issues found in selected xqar file")); + _issueBox->addTopLevelItem(newItem); + QMessageBox msgBox; + msgBox.setWindowTitle("Result file info"); + msgBox.setStandardButtons(QMessageBox::Ok); + msgBox.setText("No issues found in selected xqar file"); + msgBox.exec(); + } + _issueBox->expandAll(); }