Skip to content

Commit

Permalink
Added a connection to QgsMapLayer::nameChanged (fixes #40824)
Browse files Browse the repository at this point in the history
  • Loading branch information
TurboGraphxBeige committed Jan 20, 2021
1 parent f9deb91 commit f90105d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsmaplayerlegend.cpp
Expand Up @@ -350,6 +350,7 @@ QgsDefaultVectorLayerLegend::QgsDefaultVectorLayerLegend( QgsVectorLayer *vl )
: mLayer( vl )
{
connect( mLayer, &QgsMapLayer::rendererChanged, this, &QgsMapLayerLegend::itemsChanged );
connect( mLayer, &QgsMapLayer::nameChanged, this, &QgsMapLayerLegend::itemsChanged );
}

QList<QgsLayerTreeModelLegendNode *> QgsDefaultVectorLayerLegend::createLayerTreeModelLegendNodes( QgsLayerTreeLayer *nodeLayer )
Expand Down

0 comments on commit f90105d

Please sign in to comment.