From 21a35a2bd87bd64682495c0efd4d2c07a01d08ad Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Fri, 26 Jul 2024 21:59:35 +0700 Subject: [PATCH] [attribute form] Fix addition of features from a child feature dialog being added --- src/gui/qgsabstractrelationeditorwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/qgsabstractrelationeditorwidget.cpp b/src/gui/qgsabstractrelationeditorwidget.cpp index 764666de73fa..64ca8beb197e 100644 --- a/src/gui/qgsabstractrelationeditorwidget.cpp +++ b/src/gui/qgsabstractrelationeditorwidget.cpp @@ -287,7 +287,7 @@ QgsFeatureIds QgsAbstractRelationEditorWidget::addFeature( const QgsGeometry &ge keyAttrs.insert( fields.indexFromName( fieldPair.referencingField() ), mFeatureList.first().attribute( fieldPair.referencedField() ) ); QgsFeature linkFeature; - if ( !vlTools->addFeature( mRelation.referencingLayer(), keyAttrs, geometry, &linkFeature, this, true, true ) ) + if ( !vlTools->addFeature( mRelation.referencingLayer(), keyAttrs, geometry, &linkFeature, this, false, true ) ) return QgsFeatureIds(); addedFeatureIds.insert( linkFeature.id() );