Bug report #6782

Edit status wrong in Digitizing toolbar after committing a vector layer from Python

Added by Andreas Neumann over 11 years ago. Updated almost 10 years ago.

Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:15931


Steps to reproduce:

1. Put a vector layer in editing mode
2. do some modifications
3. save the layer from python with layer.commitChanges()
4. the script will commit the changes and stop the editing
5. the editing pencil will disappear from the layer tree (correct)
6. the digitizing toolbar still shows as editing (incorrect)

After switching to a different layer and then back, the status shows correctly as not in editing.


#1 Updated by Larry Shaffer over 11 years ago

  • Status changed from Open to Feedback

Hi Andreas,

I believe this is fixed with commit 369971a

The checked state of the digitizing toolbar's toggle editing button now responds directly to the editingStarted/editingStopped signals from QgsVectorLayer (if it is the active layer), which are emitted during commitChanges() and rollBack(). Please test, thanks.

#2 Updated by Jürgen Fischer almost 10 years ago

  • Resolution set to fixed/implemented
  • Status changed from Feedback to Closed

Also available in: Atom PDF