Open Anafi opened 7 years ago
It mostly happens when you add features after creating the required layer and remove the layer without committing changes.
Ok, it also happens in those circumstances. Removing an editable layer with unsaved commits.
I'll look into it as part of the restructuring.
I've not been able to capture this event with the remote debugger. QGIS crashes before the process goes to the functions called by the remove layer signal. We'll leave this for now, knowing the problem is there, and letting users know as well.
To be more specific on when it happens:
Otherwise it just gets rid of the layer. It works if the unsaved changes are attributes or modified vertices, or if the user chooses to save the changes when asked by QGIS.
Indeed this happens only if the tool dockwidget is closed. Must be a signal left connected.