Skip to content
Permalink
Browse files

Merge pull request #5743 from m-kuhn/fix17564

Fix crash with constraint results and custom .ui
  • Loading branch information
mhugo committed Nov 28, 2017
2 parents d31f60b + 3c702c0 commit 0f1f24a1743c1628ebd71b3130027baaef07f9d9
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 0f1f24a

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