diff --git a/src/gui/qgsrelationeditorwidget.cpp b/src/gui/qgsrelationeditorwidget.cpp index c5deeffd702..9bce60a43a8 100644 --- a/src/gui/qgsrelationeditorwidget.cpp +++ b/src/gui/qgsrelationeditorwidget.cpp @@ -517,9 +517,6 @@ void QgsRelationEditorWidget::linkFeature() for ( const QgsFeature &f : constNewFeatures ) ids << f.id(); mRelation.referencingLayer()->selectByIds( ids ); - - - updateUi(); } else { @@ -543,6 +540,8 @@ void QgsRelationEditorWidget::linkFeature() } } } + + updateUi(); } }