diff --git a/src/gui/qgsattributeform.cpp b/src/gui/qgsattributeform.cpp index aa2e3ba2c23..75188894e8b 100644 --- a/src/gui/qgsattributeform.cpp +++ b/src/gui/qgsattributeform.cpp @@ -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( w ) };