diff --git a/src/gui/qgsrelationeditorwidget.cpp b/src/gui/qgsrelationeditorwidget.cpp index ac8626bd9e5..b3b1b9766ab 100644 --- a/src/gui/qgsrelationeditorwidget.cpp +++ b/src/gui/qgsrelationeditorwidget.cpp @@ -272,6 +272,7 @@ void QgsRelationEditorWidget::initDualView( QgsVectorLayer *layer, const QgsFeat mFeatureSelectionMgr = new QgsFilteredSelectionManager( layer, request, mDualView ); mDualView->setFeatureSelectionManager( mFeatureSelectionMgr ); connect( mFeatureSelectionMgr, &QgsIFeatureSelectionManager::selectionChanged, this, &QgsRelationEditorWidget::updateButtons ); + updateButtons(); } void QgsRelationEditorWidget::setRelations( const QgsRelation &relation, const QgsRelation &nmrelation )