Skip to content

Commit 36749c1

Browse files
committed
Use relation id instead of name for nesting detection
1 parent ce8d71d commit 36749c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void QgsRelationReferenceWidgetWrapper::initWidget( QWidget* editor )
6868
const QgsAttributeEditorContext* ctx = &context();
6969
do
7070
{
71-
if ( ctx->relation().name() == relation.name() )
71+
if ( ctx->relation().id() == relation.id() )
7272
{
7373
mWidget->setEmbedForm( false );
7474
mWidget->setReadOnlySelector( true );

0 commit comments

Comments
 (0)