Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When deleting a map canvas, first clear all the pointers to that
canvas from child map tools Otherwise we risk the map tools trying to do things with the canvas within their cleanup code, and at that stage the canvas is already partially destroyed. On qt 5 builds this leads to undefined behavior, and on qt 6 builds it triggers a newly introduced assert designed to catch these kinds of bugs. It's possible that we should just delete the map tool children upfront here instead, but that's a little more risky.
- Loading branch information