Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash with constraint results and custom .ui
Fix #17564
  • Loading branch information
m-kuhn committed Nov 27, 2017
1 parent cd0ba91 commit 3c702c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/qgsattributeform.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit 3c702c0

Please sign in to comment.