Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix crash on close project with layout designer open
- Loading branch information
Showing
with
5 additions
and
0 deletions.
-
+5
−0
src/app/qgisapp.cpp
|
@@ -10600,7 +10600,12 @@ void QgisApp::closeProject() |
|
|
|
|
|
deletePrintComposers(); |
|
|
deleteLayoutDesigners(); |
|
|
|
|
|
// ensure layout widgets are fully deleted |
|
|
QgsApplication::sendPostedEvents( nullptr, QEvent::DeferredDelete ); |
|
|
|
|
|
removeAnnotationItems(); |
|
|
|
|
|
// clear out any stuff from project |
|
|
mMapCanvas->freeze( true ); |
|
|
mMapCanvas->setLayers( QList<QgsMapLayer *>() ); |
|
|