mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-18 14:55:49 -04:00
Return on first disabled item in areAllDisabled
This commit is contained in:
parent
33a3796074
commit
2f594a5130
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user