Skip to content

Commit f92c23f

Browse files
committed
Small cleanup
1 parent cf5ab4b commit f92c23f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/core/qgsvectorlayer.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,9 @@ bool QgsVectorLayer::addFeature( QgsFeature &feature, Flags )
949949
if ( success )
950950
{
951951
updateExtents();
952-
success = addFeaturesToJoinedLayers( QgsFeatureList() << feature );
952+
953+
if ( mJoinBuffer->containsJoins() )
954+
success = addFeaturesToJoinedLayers( QgsFeatureList() << feature );
953955
}
954956

955957
return success;
@@ -2636,7 +2638,7 @@ bool QgsVectorLayer::addFeatures( QgsFeatureList &features, Flags )
26362638
bool res = mEditBuffer->addFeatures( features );
26372639
updateExtents();
26382640

2639-
if ( res )
2641+
if ( res && mJoinBuffer->containsJoins() )
26402642
res = addFeaturesToJoinedLayers( features );
26412643

26422644
return res;

0 commit comments

Comments
 (0)