Bug report #18017

Bookkeeping problem in attribute table

Added by Daan Goedkoop almost 7 years ago. Updated almost 7 years ago.

Status:Closed
Priority:Normal
Assignee:Alessandro Pasotti
Category:Attribute table
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:25913

Description

Sometimes when you delete features, twice as many disappear from the attribute table.

Steps to reproduce:
1. Add the attached layer to a new project
2. Open the attribute table
3. Enable editing
4. Select the first row (see attached screenshot1.png)
5. Press "delete", now 2 rows have disappeared (see attached screenshot2.png)

For the cause of this, see my comments to this PR:
https://github.com/qgis/QGIS/pull/6185

Possible solution:
https://github.com/qgis/QGIS/pull/6191

test.gpkg (116 KB) Daan Goedkoop, 2018-02-01 10:22 AM

screenshot1.png (36.9 KB) Daan Goedkoop, 2018-02-01 10:24 AM

screenshot2.png (38.5 KB) Daan Goedkoop, 2018-02-01 10:25 AM


Related issues

Related to QGIS Application - Bug report #18016: Layer sometimes appears modified without editing data Closed 2018-02-01

History

#1 Updated by Alessandro Pasotti almost 7 years ago

  • Assignee set to Alessandro Pasotti

#2 Updated by Daan Goedkoop almost 7 years ago

P.S. I used the daily snapshot. I see that today the default widget in some cases has been changed from a range widget to a normal text editor widget. However, even if using the range widget, I think this bug should not occur.

#3 Updated by Alessandro Pasotti almost 7 years ago

  • Status changed from Open to In Progress

I think that with today's fixes and your PR the issue can be closed.

Please test it.

#4 Updated by Alessandro Pasotti almost 7 years ago

  • Related to Bug report #18016: Layer sometimes appears modified without editing data added

#5 Updated by Daan Goedkoop almost 7 years ago

Looks good, thank you!

#6 Updated by Daan Goedkoop almost 7 years ago

Note: I cannot close these two bug reports myself!

#7 Updated by Harrissou Santanna almost 7 years ago

  • Resolution set to fixed/implemented
  • Status changed from In Progress to Closed

Also available in: Atom PDF