Re: [QGIS-Developer] Create layer, start edit session, commit and end edit session does not get me completely out of edit session and get my pan cursor back

2023-04-04 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
Oddly if I left click on the mouse the pan cursor comes back. Seems like a refresh issue, but I refreshed the map an that did not work. Oddly I also only have this issue if drawing a polygon. If I draw a point of line, no issue. From: QGIS-Developer On Behalf Of Catania, Luke A

Re: [QGIS-Developer] Create layer, start edit session, commit and end edit session does not get me completely out of edit session and get my pan cursor back

2023-03-20 Thread WhereGroup
Hard to tell where the issue is without a minimal reproducible code example... Best always use the "with edit():" context instead of manually fiddling around with startEditing/commitChanges. And if you use functions that return success codes, make sure you check them. Cheers, Hannes Am

[QGIS-Developer] Create layer, start edit session, commit and end edit session does not get me completely out of edit session and get my pan cursor back

2023-03-17 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
I have written code that automatically creates an empty QgsVectorLayer, adds it to the layer panel; I add a call to vlayer.featureAdded.connect(self.check_size) on the created layer that starts an edit session as well as checks that my polygon is within a min and max size. The user can then