Bug report #11168

Cannot remove expression fields (crash)

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

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

Description

After having added an expression field to a vector layer, I am unable to remove it. Clicking "delete column" crashes QGIS because it is trying to remove a field from edit buffer which does not exist.

Also, would it be possible to update the GUI somehow so that users do not need to enter editing mode in order to add expression field? It is not bound to the editing mode anyway...

Associated revisions

Revision bed164e7
Added by Matthias Kuhn about 10 years ago

Allow usage of virtual fields also for layer w/o add attribute support

Fix #11168

History

#1 Updated by Matthias Kuhn about 10 years ago

  • Status changed from Open to Feedback

Hi Martin,

The following pull request solves the issue here as well as it integrates it with editing mode/undo (waiting for your review for the second part).

https://github.com/qgis/QGIS/pull/1515

#2 Updated by Martin Dobias about 10 years ago

Oh... what a coincidence :-)
Sorry - I am sometimes a bit loosing track of the pull requests... I will try to have a look at it this week.

#3 Updated by Giovanni Manghi about 10 years ago

  • Status changed from Feedback to Open

#4 Updated by Matthias Kuhn about 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF