Skip to content
Permalink
Browse files

Fix crash on close project with layout designer open

  • Loading branch information
nyalldawson committed Jan 1, 2018
1 parent 2281dc0 commit f7759b20e1a8eeeae76e8adadeb7b8d4729419aa
Showing with 5 additions and 0 deletions.
  1. +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 *>() );

0 comments on commit f7759b2

Please sign in to comment.
You can’t perform that action at this time.