Bug report #11296
Deleting shapes in shapefiles does not work
|Affected QGIS version:||2.4.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19592|
After opening an existing ESRI-shapefiel (polygons) and deleting some of the shapes qgis marks the deleted lines in the dbase-file with
*. When saving the shapefile the marked entries are still in the shapefile. Opening such a shapefile in ArcGIS shows all in qgis deleted elements. It seems OGRLayer REPACk is not used in saving.
Repack shapefiles when saving after deleting features
- QgsVectorDataProvider::dataChanged() will be emitted
- QgsVectorLayer::dataChanged() will be emitted
- Clears QgsVectorLayerCache
- Reloads the attribute table
- Clears the selection
Looking forward to people complaining about their lost selection...