Skip to content

Commit

Permalink
Use relation id instead of name for nesting detection
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 16, 2018
1 parent fc704ef commit a0ff64d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void QgsRelationReferenceWidgetWrapper::initWidget( QWidget *editor )
// If this widget is already embedded by the same relation, reduce functionality
do
{
if ( ctx->relation().name() == relation.name() )
if ( ctx->relation().id() == relation.id() )
{
mWidget->setEmbedForm( false );
mWidget->setReadOnlySelector( true );
Expand Down

0 comments on commit a0ff64d

Please sign in to comment.