Fix: Disable 'Remove' button in Plugin Data when no row is selected (#12916)
Some checks failed
CodeQL / Analyze (push) Has been cancelled

* Fix: Disable Remove button in Plugin Data when no row is selected
This commit is contained in:
Pranmya Joshi 2026-01-10 00:12:24 +05:30 committed by GitHub
parent 18973351de
commit 6bd8360261
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,6 +116,6 @@ void EditWidgetProperties::update()
m_customDataModel->appendRow(QList<QStandardItem*>()
<< new QStandardItem(key) << new QStandardItem(m_customData->value(key)));
}
m_ui->removeCustomDataButton->setEnabled(!m_customData->isEmpty());
m_ui->removeCustomDataButton->setEnabled(m_ui->customDataTable->selectionModel()->hasSelection());
}
}