Skip to content
Browse files

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

the default "Legend" title upon item creation.

(cherry picked from commit 5d3da0d)
  • Loading branch information
nirvn authored and nyalldawson committed Sep 4, 2018
1 parent 4a967d9 commit 9b764a87c83fefa456e27c301a3401d8f710c6b9
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 9b764a8

Please sign in to comment.