Skip to content
Permalink
Browse files

Avoid some unnecessary composer legend updates

(cherry-picked from aaa654f)
  • Loading branch information
nyalldawson committed Jul 19, 2016
1 parent 8a51e08 commit 558008309181bc39747385643188e98fb17c6e9d
Showing with 5 additions and 0 deletions.
  1. +3 −0 src/app/composer/qgscomposerlegendwidget.cpp
  2. +2 −0 src/core/composer/qgscomposerlegend.cpp
@@ -902,6 +902,9 @@ void QgsComposerLegendWidget::blockAllSignals( bool b )
mRasterBorderGroupBox->blockSignals( b );
mRasterBorderColorButton->blockSignals( b );
mRasterBorderWidthSpinBox->blockSignals( b );
mWmsLegendWidthSpinBox->blockSignals( b );
mWmsLegendHeightSpinBox->blockSignals( b );
mTitleSpaceBottomSpinBox->blockSignals( b );
}

void QgsComposerLegendWidget::refreshMapComboBox()
@@ -299,7 +299,9 @@ void QgsComposerLegend::synchronizeWithModel()
void QgsComposerLegend::updateLegend()
{
// take layer list from map renderer (to have legend order)
mLegendModel.blockSignals( true );
mLegendModel.setLayerSet( mComposition ? mComposition->mapSettings().layers() : QStringList() );
mLegendModel.blockSignals( false );
adjustBoxSize();
updateItem();
}

0 comments on commit 5580083

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