Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
clear reference to layer in layer styling widget on closing project
  • Loading branch information
CodeBardian authored and nyalldawson committed Jan 10, 2023
1 parent d91acd6 commit 1523ba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -13558,6 +13558,7 @@ void QgisApp::closeProject()
mMapCanvas->clearCache();
mMapCanvas->cancelJobs();
mOverviewCanvas->setLayers( QList<QgsMapLayer *>() );
mMapStyleWidget->setLayer( nullptr );

// Avoid unnecessary layer changed handling for each layer removed - instead,
// defer the handling until we've removed all layers
Expand Down

0 comments on commit 1523ba5

Please sign in to comment.