Bug report #10362

Crash on rollback after addition of a feature

Added by Martin Dobias over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:Matthias Kuhn
Category:-
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

Description

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).

Associated revisions

Revision 644dd13c
Added by Matthias Kuhn over 10 years ago

Fix add features dialog
Fix #10362

History

#1 Updated by Giovanni Manghi over 10 years ago

is a regression?

#2 Updated by Martin Dobias over 10 years ago

Yes, related to fix of #10337

#3 Updated by Giovanni Manghi over 10 years ago

  • Priority changed from Normal to Severe/Regression

#4 Updated by Matthias Kuhn over 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF