Skip to content
Permalink
Browse files

Use relation id instead of name for nesting detection

  • Loading branch information
m-kuhn committed Apr 16, 2018
1 parent ce8d71d commit 36749c197f0c933d3235ab232788479c9b89d4e0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp
@@ -68,7 +68,7 @@ void QgsRelationReferenceWidgetWrapper::initWidget( QWidget* editor )
const QgsAttributeEditorContext* ctx = &context();
do
{
if ( ctx->relation().name() == relation.name() )
if ( ctx->relation().id() == relation.id() )
{
mWidget->setEmbedForm( false );
mWidget->setReadOnlySelector( true );

0 comments on commit 36749c1

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