Skip to content
Permalink
Browse files

should avoid creating search widget when it's a child

and create search widget when it's a parent currently
  • Loading branch information
signedav committed Sep 13, 2018
1 parent cbb0e76 commit d32c34fa25a7053bca11a76cf27570cccd566633
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsattributeformrelationeditorwidget.cpp
@@ -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 );

0 comments on commit d32c34f

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