Skip to content

Commit d32c34f

Browse files
committedSep 13, 2018
should avoid creating search widget when it's a child
and create search widget when it's a parent currently
1 parent cbb0e76 commit d32c34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/qgsattributeformrelationeditorwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ QgsAttributeFormRelationEditorWidget::QgsAttributeFormRelationEditorWidget( QgsR
2828

2929
void QgsAttributeFormRelationEditorWidget::createSearchWidgetWrappers( const QgsAttributeEditorContext &context )
3030
{
31-
if ( context.parentContext() )
31+
if ( !context.parentContext() )
3232
{
3333
mSearchWidget = new QgsRelationAggregateSearchWidgetWrapper( layer(), mWrapper, form() );
3434
mSearchWidget->setContext( context );

0 commit comments

Comments
 (0)
Please sign in to comment.