Skip to content
Permalink
Browse files

Fix crash with constraint results and custom .ui

Fix #17564
  • Loading branch information
m-kuhn committed Nov 27, 2017
1 parent cd0ba91 commit 3c702c07a0ab6fa03024e170c826a24351fb86e0
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gui/qgsattributeform.cpp
@@ -980,7 +980,10 @@ void QgsAttributeForm::synchronizeEnabledState()
QgsEditorWidgetWrapper *eww = qobject_cast<QgsEditorWidgetWrapper *>( ww );
if ( eww )
{
mFormEditorWidgets.value( eww->fieldIdx() )->setConstraintResultVisible( isEditable );
QgsAttributeFormEditorWidget *formWidget = mFormEditorWidgets.value( eww->fieldIdx() );

if ( formWidget )
formWidget->setConstraintResultVisible( isEditable );

eww->setConstraintResultVisible( isEditable );

0 comments on commit 3c702c0

Please sign in to comment.
You can’t perform that action at this time.