mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-03-11 08:54:48 +00:00
Exclude groups from database reports
This commit is contained in:
parent
316ea082b9
commit
79ad4a6ae9
3 changed files with 7 additions and 3 deletions
|
|
@ -50,7 +50,7 @@ namespace
|
|||
, entry(e)
|
||||
, hasUrls(hU)
|
||||
, hasSettings(hS)
|
||||
, exclude(e->excludeFromReports())
|
||||
, exclude(e->excludeFromReports() || g->excludeFromReports())
|
||||
{
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ namespace
|
|||
: group(g)
|
||||
, entry(e)
|
||||
, health(h)
|
||||
, exclude(e->excludeFromReports())
|
||||
, exclude(e->excludeFromReports() || g->excludeFromReports())
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue