Skip to content
Permalink
Browse files

Fix form constraints and group visibility

When a relation editor was shown (or more generally a widget which is not an
editor widget), constraints and group visibility were silently disabled.
  • Loading branch information
m-kuhn committed Oct 18, 2016
1 parent 4ba3290 commit 1700aa1c7f447bbd528303225145c6a67de76884
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gui/qgsattributeform.cpp
@@ -765,7 +765,11 @@ bool QgsAttributeForm::currentFormFeature( QgsFeature &feature )
Q_FOREACH ( QgsWidgetWrapper* ww, mWidgets )
{
QgsEditorWidgetWrapper* eww = qobject_cast<QgsEditorWidgetWrapper*>( ww );
if ( eww && dst.count() > eww->fieldIdx() )

if ( !eww )
continue;

if ( dst.count() > eww->fieldIdx() )
{
QVariant dstVar = dst.at( eww->fieldIdx() );
QVariant srcVar = eww->value();

0 comments on commit 1700aa1

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