Skip to content

Commit

Permalink
Fix relation editor widget in autogenerated forms
Browse files Browse the repository at this point in the history
Fix #17525
  • Loading branch information
m-kuhn committed Apr 18, 2018
1 parent d28451c commit 84ec10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsattributeform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 84ec10e

Please sign in to comment.