From e8d1a236d3dc9f02af3e0fce1cca99cdad42b70c Mon Sep 17 00:00:00 2001 From: Julien Cabieces Date: Mon, 28 Oct 2019 12:00:17 +0100 Subject: [PATCH] Update ui when linking feature for any relation type --- src/gui/qgsrelationeditorwidget.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); } }