<div></div><br>
Hi all,<br>i have a problem with beginEditCommand and endEditCommand wrapping.<br>In my plugin i capture the layer.featureAdded signal :<br>self.layer.featureAdded.connect(self.myfunction)<br> The scope of my function is to change attribute of the feature added according with some rules.<br>I wrap self.layer.changeAttributevalue between self.layer.beginEditCommand('My custom value') and self.layer.endEditCommand() but when i added a feature i can't see in Undo/redo window the label My custom value but my value is changed.<br>This cause a Qgis 2.8.2 crash when i try to rollback my changes.<br><br>P.S If i comment my change values function and i write the code in a python console i can see  my beginEditCommand label and no crash happend.<br><br>Anyone can help me?<br><br>Thanks<br><br>Francesco<br>