Transaction: Update feature with generated values from the provider

This commit is contained in:
Matthias Kuhn 2015-11-30 13:49:43 +01:00
parent cd06376c5b
commit b3cf45461e

View File

@ -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;
}