Skip to content
Permalink
Browse files

Avoid unnecessary work

  • Loading branch information
nyalldawson committed Jun 1, 2020
1 parent e52a9bb commit 1f565a372e81a817b9bd2a6c708dbc3aac05ec09
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/layout/qgslayoutitemlegend.cpp
@@ -259,8 +259,11 @@ void QgsLayoutItemLegend::setAutoUpdateModel( bool autoUpdate )
updateFilterByMap( false );
}

void QgsLayoutItemLegend::nodeCustomPropertyChanged( QgsLayerTreeNode *, const QString & )
void QgsLayoutItemLegend::nodeCustomPropertyChanged( QgsLayerTreeNode *, const QString &key )
{
if ( key == QLatin1String( "cached_name" ) )
return;

if ( autoUpdateModel() )
{
// in "auto update" mode, some parameters on the main app legend may have been changed (expression filtering)

0 comments on commit 1f565a3

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