Skip to content

Commit

Permalink
Update buttons on referenced layer edit state change in N:M
Browse files Browse the repository at this point in the history
Fix #16635
  • Loading branch information
m-kuhn committed Nov 14, 2017
1 parent 3ba2254 commit 30eec2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsrelationeditorwidget.cpp
Expand Up @@ -220,8 +220,8 @@ void QgsRelationEditorWidget::setRelations( const QgsRelation &relation, const Q

if ( mNmRelation.isValid() )
{
connect( mNmRelation.referencingLayer(), &QgsVectorLayer::editingStarted, this, &QgsRelationEditorWidget::updateButtons );
connect( mNmRelation.referencingLayer(), &QgsVectorLayer::editingStopped, this, &QgsRelationEditorWidget::updateButtons );
connect( mNmRelation.referencedLayer(), &QgsVectorLayer::editingStarted, this, &QgsRelationEditorWidget::updateButtons );
connect( mNmRelation.referencedLayer(), &QgsVectorLayer::editingStopped, this, &QgsRelationEditorWidget::updateButtons );
}

setTitle( relation.name() );
Expand Down

0 comments on commit 30eec2b

Please sign in to comment.