Skip to content
Permalink
Browse files

Self referencing relations: do not repeatedly embed dual view

  • Loading branch information
m-kuhn committed Oct 21, 2014
1 parent 5f9e45a commit da98a3c343eb5d64ac9e68ce23c13fd8365b0f84
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp
@@ -56,10 +56,9 @@ void QgsRelationWidgetWrapper::initWidget( QWidget* editor )
const QgsAttributeEditorContext* ctx = &context();
do
{
if ( ctx->relation().name() == mRelation.name() && ctx->relationMode() == QgsAttributeEditorContext::Multiple )
if ( ctx->relation().name() == mRelation.name() && ctx->formMode() == QgsAttributeEditorContext::Embed )
{
w->setSaveCollapsedState( false );
w->setCollapsed( true );
w->setVisible( false );
break;
}
ctx = ctx->parentContext();

0 comments on commit da98a3c

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