mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-06 00:05:02 -05:00
Transaction: Update feature with generated values from the provider
This commit is contained in:
parent
cd06376c5b
commit
b3cf45461e
@ -24,7 +24,7 @@ bool QgsVectorLayerEditPassthrough::addFeature( QgsFeature& f )
|
||||
fl << f;
|
||||
if ( L->dataProvider()->addFeatures( fl ) )
|
||||
{
|
||||
f.setFeatureId( fl.first().id() );
|
||||
f = fl.first();
|
||||
emit featureAdded( f.id() );
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user