Add checkbox to exclude expired entries in HIBP report (#13726)

---------

Co-authored-by: Jonathan White <[email protected]>
This commit is contained in:
Litschi21andJonathan White authored and GitHub committed 2026-11-30 06:32:15 -05:00
1 parent 50e2a47df3
commit c8a1b8c281
3 files changed
+13 -1

No files matched your search

+2 -1
View File
@@ -71,6 +71,7 @@ ReportsWidgetHibp::ReportsWidgetHibp(QWidget* parent)
connect(m_ui->hibpTableView, SIGNAL(doubleClicked(QModelIndex)), SLOT(emitEntryActivated(QModelIndex)));
connect(m_ui->hibpTableView, SIGNAL(customContextMenuRequested(QPoint)), SLOT(customMenuRequested(QPoint)));
connect(m_ui->showKnownBadCheckBox, SIGNAL(toggled(bool)), this, SLOT(makeHibpTable()));
connect(m_ui->hideExpired, SIGNAL(toggled(bool)), this, SLOT(makeHibpTable()));
#ifdef KPXC_FEATURE_NETWORK
connect(&m_downloader, SIGNAL(hibpResult(QString, int)), SLOT(addHibpResult(QString, int)));
connect(&m_downloader, SIGNAL(fetchFailed(QString)), SLOT(fetchFailed(QString)));
@@ -153,7 +154,7 @@ void ReportsWidgetHibp::makeHibpTable()
auto title = entry->title();
// Hide entry if excluded unless explicitly requested
if (entry->excludeFromReports()) {
if (entry->excludeFromReports() || (m_ui->hideExpired->isChecked() && entry->isExpired())) {
anyExcluded = true;
if (!showExcluded) {
continue;
+7
View File
@@ -174,6 +174,13 @@
<string>Also show entries that have been excluded from reports</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="hideExpired">
<property name="text">
<string>Hide expired entries</string>
</property>
</widget>
</item>
</layout>
</widget>