mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Return on first disabled item in areAllDisabled
This commit is contained in:
committed by
Jonathan White
parent
6e1694111f
commit
ad2f95117a
@@ -150,14 +150,13 @@ void BrowserAccessControlDialog::selectionChanged()
|
||||
|
||||
bool BrowserAccessControlDialog::areAllDisabled() const
|
||||
{
|
||||
auto areAllDisabled = true;
|
||||
for (const auto& item : getAllItems()) {
|
||||
if (item->flags() != Qt::NoItemFlags) {
|
||||
areAllDisabled = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return areAllDisabled;
|
||||
return true;
|
||||
}
|
||||
|
||||
QList<QTableWidgetItem*> BrowserAccessControlDialog::getAllItems() const
|
||||
|
||||
Reference in New Issue
Block a user