Skip to content

Commit

Permalink
Fix crash on close project with layout designer open
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent 2281dc0 commit f7759b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 *>() );
Expand Down

0 comments on commit f7759b2

Please sign in to comment.