Skip to content

Commit

Permalink
Check for same transaction group
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 18, 2021
1 parent fc40045 commit 3a24495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsattributetabledialog.cpp
Expand Up @@ -239,7 +239,7 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *layer, QgsAttr
{
for ( auto it = transactionGroups.constBegin(); it != transactionGroups.constEnd(); ++it )
{
if ( relation.isValid() )
if ( relation.isValid() && it.value()->layers().contains( { mLayer, relation.referencingLayer() } ) )
{
mReferencingLayers.push_back( relation.referencingLayer() );
connect( relation.referencingLayer(), &QgsVectorLayer::layerModified, this, &QgsAttributeTableDialog::updateLayerModifiedActions );
Expand Down

0 comments on commit 3a24495

Please sign in to comment.