Skip to content

Commit

Permalink
should avoid creating search widget when it's a child
Browse files Browse the repository at this point in the history
and create search widget when it's a parent currently
  • Loading branch information
signedav committed Sep 13, 2018
1 parent cbb0e76 commit d32c34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsattributeformrelationeditorwidget.cpp
Expand Up @@ -28,7 +28,7 @@ QgsAttributeFormRelationEditorWidget::QgsAttributeFormRelationEditorWidget( QgsR

void QgsAttributeFormRelationEditorWidget::createSearchWidgetWrappers( const QgsAttributeEditorContext &context )
{
if ( context.parentContext() )
if ( !context.parentContext() )
{
mSearchWidget = new QgsRelationAggregateSearchWidgetWrapper( layer(), mWrapper, form() );
mSearchWidget->setContext( context );
Expand Down

0 comments on commit d32c34f

Please sign in to comment.