Bug report #12686
layer.featureAdded triggered on Feature Attribute Dialog confirm
|Affected QGIS version:||2.8.1||Regression?:||No|
|Operating System:||OSX, Ubuntu, (Windows not tested)||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||not reproducable|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20792|
Select a vector (point) layer
Make it editable
Select a feature (opens feature Dialog in edit mode if auto open specified)
Click Ok (layer.featureAdded signal is invoked with negative fid. Feature is not updated)
Repeatable - yes.
#3 Updated by Andrew McClure over 4 years ago
It may be that this is how it is designed to work?
I updated to my code in the function connected to featuredAdded to check whether the feature was new or had certain values populated. If the latter, then I knew it was an update and could copy across the values to the original feature then delete the new temporary feature.
Still feels like a bit of a hack.