Skip to content

Commit 1318518

Browse files
committed
Update buttons on referenced layer edit state change in N:M
Fix #16635
1 parent 93624b0 commit 1318518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/qgsrelationeditorwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ void QgsRelationEditorWidget::setRelations( const QgsRelation& relation, const Q
208208

209209
if ( mNmRelation.isValid() )
210210
{
211-
connect( mNmRelation.referencingLayer(), SIGNAL( editingStarted() ), this, SLOT( updateButtons() ) );
212-
connect( mNmRelation.referencingLayer(), SIGNAL( editingStopped() ), this, SLOT( updateButtons() ) );
211+
connect( mNmRelation.referencedLayer(), SIGNAL( editingStarted() ), this, SLOT( updateButtons() ) );
212+
connect( mNmRelation.referencedLayer(), SIGNAL( editingStopped() ), this, SLOT( updateButtons() ) );
213213
}
214214

215215
setTitle( relation.name() );

0 commit comments

Comments
 (0)