diff --git a/src/gui/reports/ReportsWidgetHealthcheck.cpp b/src/gui/reports/ReportsWidgetHealthcheck.cpp
index 2f7b962c..ad88cdc3 100644
--- a/src/gui/reports/ReportsWidgetHealthcheck.cpp
+++ b/src/gui/reports/ReportsWidgetHealthcheck.cpp
@@ -156,6 +156,7 @@ ReportsWidgetHealthcheck::ReportsWidgetHealthcheck(QWidget* parent)
connect(m_ui->healthcheckTableView, SIGNAL(customContextMenuRequested(QPoint)), SLOT(customMenuRequested(QPoint)));
connect(m_ui->healthcheckTableView, SIGNAL(doubleClicked(QModelIndex)), SLOT(emitEntryActivated(QModelIndex)));
connect(m_ui->showKnownBadCheckBox, SIGNAL(stateChanged(int)), this, SLOT(calculateHealth()));
+ connect(m_ui->excludeExpired, SIGNAL(stateChanged(int)), this, SLOT(calculateHealth()));
}
ReportsWidgetHealthcheck::~ReportsWidgetHealthcheck()
@@ -263,7 +264,8 @@ void ReportsWidgetHealthcheck::calculateHealth()
// Display the entries
m_rowToEntry.clear();
for (const auto& item : health->items()) {
- if (item->exclude && !showExcluded) {
+ auto excluded = item->exclude || (item->entry->isExpired() && m_ui->excludeExpired->isChecked());
+ if (excluded && !showExcluded) {
// Exclude this entry from the report
continue;
}
diff --git a/src/gui/reports/ReportsWidgetHealthcheck.ui b/src/gui/reports/ReportsWidgetHealthcheck.ui
index 72e4fc32..b9f27c4c 100644
--- a/src/gui/reports/ReportsWidgetHealthcheck.ui
+++ b/src/gui/reports/ReportsWidgetHealthcheck.ui
@@ -51,6 +51,13 @@
+ -
+
+
+ Exclude expired entries from the report
+
+
+
-