Skip to content

Commit

Permalink
[attribute form] Fix addition of features from a child feature dialog…
Browse files Browse the repository at this point in the history
… being added
  • Loading branch information
nirvn committed Jul 26, 2024
1 parent b8301f7 commit 21a35a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsabstractrelationeditorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down

0 comments on commit 21a35a2

Please sign in to comment.