Skip to content
Browse files

[layout] Fix legend item properties' title entry not showing

the default "Legend" title upon item creation.
  • Loading branch information
nirvn committed Sep 3, 2018
1 parent 199f4ef commit 5d3da0dee3c6e918b7a2de84e20578d5a4628c2e
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/layout/qgslayoutitemlegend.cpp
@@ -42,6 +42,8 @@ QgsLayoutItemLegend::QgsLayoutItemLegend( QgsLayout *layout )
connect( &layout->atlasComposition(), &QgsAtlasComposition::renderEnded, this, &QgsLayoutItemLegend::onAtlasEnded );

mTitle = mSettings.title();

// Connect to the main layertreeroot.
// It serves in "auto update mode" as a medium between the main app legend and this one
connect( mLayout->project()->layerTreeRoot(), &QgsLayerTreeNode::customPropertyChanged, this, &QgsLayoutItemLegend::nodeCustomPropertyChanged );

0 comments on commit 5d3da0d

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