This commit is contained in:
Alessandro Pasotti 2023-06-20 08:18:58 +02:00
parent 1c391d3aca
commit c9e9069a0a

View File

@ -1238,7 +1238,7 @@ void QgsAttributeForm::updateEditableState()
{
QWidget *w { it.key() };
bool ok;
const bool isEditable { it->valueAsBool( context, true, &ok ) &&mLayer &&mLayer->isEditable() };
const bool isEditable { it->valueAsBool( context, true, &ok ) && mLayer && mLayer->isEditable() }; // *NOPAD*
if ( ok )
{
QgsAttributeFormEditorWidget *editorWidget { qobject_cast<QgsAttributeFormEditorWidget *>( w ) };