From ba00513b7f9827eed07c4a078ba95b627b74700f Mon Sep 17 00:00:00 2001 From: Julien Cabieces Date: Mon, 28 Oct 2019 11:37:03 +0100 Subject: [PATCH] Update buttons when initiliazing --- src/gui/qgsrelationeditorwidget.cpp | 1 + 1 file changed, 1 insertion(+) 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 )