We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd0ba91 commit 3c702c0Copy full SHA for 3c702c0
src/gui/qgsattributeform.cpp
@@ -980,7 +980,10 @@ void QgsAttributeForm::synchronizeEnabledState()
980
QgsEditorWidgetWrapper *eww = qobject_cast<QgsEditorWidgetWrapper *>( ww );
981
if ( eww )
982
{
983
- mFormEditorWidgets.value( eww->fieldIdx() )->setConstraintResultVisible( isEditable );
+ QgsAttributeFormEditorWidget *formWidget = mFormEditorWidgets.value( eww->fieldIdx() );
984
+
985
+ if ( formWidget )
986
+ formWidget->setConstraintResultVisible( isEditable );
987
988
eww->setConstraintResultVisible( isEditable );
989
0 commit comments