Exclude groups from database reports

This commit is contained in:
Agoston Szepessy 2025-12-22 20:30:49 -08:00
parent 316ea082b9
commit 79ad4a6ae9
3 changed files with 7 additions and 3 deletions

View file

@ -50,7 +50,7 @@ namespace
, entry(e)
, hasUrls(hU)
, hasSettings(hS)
, exclude(e->excludeFromReports())
, exclude(e->excludeFromReports() || g->excludeFromReports())
{
}
};

View file

@ -47,7 +47,7 @@ namespace
: group(g)
, entry(e)
, health(h)
, exclude(e->excludeFromReports())
, exclude(e->excludeFromReports() || g->excludeFromReports())
{
}

View file

@ -153,7 +153,7 @@ void ReportsWidgetHibp::makeHibpTable()
auto title = entry->title();
// Hide entry if excluded unless explicitly requested
if (entry->excludeFromReports()) {
if (entry->excludeFromReports() || entry->group()->excludeFromReports()) {
anyExcluded = true;
if (!showExcluded) {
continue;
@ -171,6 +171,10 @@ void ReportsWidgetHibp::makeHibpTable()
row[1]->setToolTip(tr("This entry is being excluded from reports"));
}
if(entry->group()->excludeFromReports()) {
row[1]->setToolTip(tr("The group for this entry is being excluded from reports"));
}
row[2]->setForeground(red);
row[2]->setData(count, Qt::UserRole);
m_referencesModel->appendRow(row);