Skip to content
Permalink
Browse files

Check layer pointer for validity

  • Loading branch information
m-kuhn committed Sep 12, 2018
1 parent 85ff90f commit 561586f740fcca2cc33fa0a739e2445899a448d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -12054,7 +12054,7 @@ void QgisApp::legendLayerSelectionChanged()
bool removeEnabled = true;
for ( QgsLayerTreeLayer *nodeLayer : selectedLayers )
{
if ( !nodeLayer->layer()->flags().testFlag( QgsMapLayer::Removable ) )
if ( nodeLayer->layer() && !nodeLayer->layer()->flags().testFlag( QgsMapLayer::Removable ) )
{
removeEnabled = false;
break;

0 comments on commit 561586f

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