Skip to content
Permalink
Browse files

[editor widget] Respect "allow add child feature"

... also when the child layer has a geometry

Fixes #38467
  • Loading branch information
m-kuhn authored and nyalldawson committed Aug 28, 2020
1 parent ae2c9f2 commit 39ed0e4f229f6711e0c50c1db1c3f3fbd133077a
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgsrelationeditorwidget.cpp
@@ -960,6 +960,7 @@ void QgsRelationEditorWidget::setVisibleButtons( const QgsAttributeEditorRelatio
mUnlinkFeatureButton->setVisible( buttons.testFlag( QgsAttributeEditorRelation::Button::Unlink ) );
mSaveEditsButton->setVisible( buttons.testFlag( QgsAttributeEditorRelation::Button::SaveChildEdits ) );
mAddFeatureButton->setVisible( buttons.testFlag( QgsAttributeEditorRelation::Button::AddChildFeature ) );
mAddFeatureGeometryButton->setVisible( buttons.testFlag( QgsAttributeEditorRelation::Button::AddChildFeature ) );
mDuplicateFeatureButton->setVisible( buttons.testFlag( QgsAttributeEditorRelation::Button::DuplicateChildFeature ) );
mDeleteFeatureButton->setVisible( buttons.testFlag( QgsAttributeEditorRelation::Button::DeleteChildFeature ) );
mZoomToFeatureButton->setVisible( buttons.testFlag( QgsAttributeEditorRelation::Button::ZoomToChildFeature ) );

0 comments on commit 39ed0e4

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