mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-05 08:12:35 -08:00
Add checkbox to exclude expired entries in HIBP report (#13726)
--------- Co-authored-by: Jonathan White <[email protected]>
This commit is contained in:
1 parent
50e2a47df3
commit
c8a1b8c281
3 files changed
+13
-1
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user