This commit is contained in:
Alexey Mostovoy 2025-03-30 23:52:53 +02:00 committed by GitHub
commit 381ca8b45c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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