Skip to content

Commit

Permalink
Ensure layer style dock is updated when toggling legend items through
Browse files Browse the repository at this point in the history
layer tree menu

Fixes #40630
  • Loading branch information
nyalldawson committed Jan 19, 2021
1 parent a84647c commit 457d661
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -266,6 +266,7 @@ void QgsLayerTreeModelLegendNode::toggleAllItems()
}

emit dataChanged();
vlayer->emitStyleChanged();
vlayer->triggerRepaint();
}
else if ( QgsPointCloudLayer *pclayer = qobject_cast<QgsPointCloudLayer *>( mLayerNode->layer() ) )
Expand Down Expand Up @@ -475,6 +476,7 @@ void QgsLayerTreeModelLegendNode::checkAll( bool state )
}

emit dataChanged();
vlayer->emitStyleChanged();
vlayer->triggerRepaint();
}
else if ( QgsPointCloudLayer *pclayer = qobject_cast<QgsPointCloudLayer *>( mLayerNode->layer() ) )
Expand Down

0 comments on commit 457d661

Please sign in to comment.