planetfederal / qgis-geogiglight-plugin

GNU General Public License v2.0
19 stars 9 forks source link

applyLayerChanges incomple when deleting features #117

Open MarkusHesse42 opened 6 years ago

MarkusHesse42 commented 6 years ago

When features are deleted in applyLayerChanges , the mapping record from gpkg_fid to geogig_fid is not deleted. This leads to inconsistences in the DB and strange effects when using applyLayerChanges several times.

In applyLayerChanges a line liked this cursor.execute('DELETE FROM "%s_fids" WHERE geogig_fid = "%s"' % (layername, geogigfid)) should be added at the end of the block after "for r in removed:"