Closed sthiele closed 1 year ago
I have so far not been able to reproduce #454. What makes you think that the MapView maps were not properly cleared? I have noticed that EscherMapView maps are not properly cleared (the web engine processes will not go away) when another project is opened, but this PR does unfortunately not help with that.
I noticed that the error is triggered (on exit) by an old MapView after a new had already been created.
Calling map_tabs.clear()
does not delete the MapView objects.
https://doc.qt.io/qtforpython-5/PySide2/QtWidgets/QTabWidget.html#PySide2.QtWidgets.PySide2.QtWidgets.QTabWidget.clear
Somehow the on on_vbar_change
method is called on the old map view while the appdata.project
doesn't hold the old map data anymore.
Now that you mention it, it might make sense to add similar code to new_project_unchecked
Scheduling the old map view for deletion seems to solve issue #454