Bug report #10362
Crash on rollback after addition of a feature
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18781|
Something is getting wrong with the vector layer commands.
Steps to reproduce:
1. add a vector layer
2. start editing
3. add a new feature
4. stop editing without saving changes (rollback) -> crash
In qgsattributeform.cpp, I have tried to move beginEditCommand() on line 177 to the else branch few lines later. That helps, but then there is a new issue that new "add feature" command is immediately undo-ed (i.e. it is still in the undo stack, but not active).