Skip to content
Permalink
Browse files

Merge pull request #6812 from m-kuhn/fix17525

Fix relation editor widget in autogenerated forms
  • Loading branch information
m-kuhn committed Apr 18, 2018
2 parents d28451c + 84ec10e commit 9f41a9b82177da2169d6225d787681b33aec5d1b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsattributeform.cpp
@@ -1334,10 +1334,10 @@ void QgsAttributeForm::init()
const QgsEditorWidgetSetup setup = QgsGui::editorWidgetRegistry()->findBest( mLayer, rel.id() );
rww->setConfig( setup.config() );
rww->setContext( mContext );
gridLayout->addWidget( rww->widget(), row++, 0, 1, 2 );

QgsAttributeFormRelationEditorWidget *formWidget = new QgsAttributeFormRelationEditorWidget( rww, this );
formWidget->createSearchWidgetWrappers( mContext );
gridLayout->addWidget( formWidget, row++, 0, 1, 2 );

mWidgets.append( rww );
mFormWidgets.append( formWidget );

0 comments on commit 9f41a9b

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