Skip to content
Permalink
Browse files

[layouts] Fix reference map can change when opening a layout designer

(cherry-picked from 6b5dfce)
  • Loading branch information
nyalldawson committed Mar 9, 2018
1 parent a7c42d2 commit 40626cad7a339810425cbd9b479efacc95dba25d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/layout/qgslayoutpropertieswidget.cpp
@@ -79,10 +79,10 @@ QgsLayoutPropertiesWidget::QgsLayoutPropertiesWidget( QWidget *parent, QgsLayout
connect( mResizePageButton, &QPushButton::clicked, this, &QgsLayoutPropertiesWidget::resizeToContents );

connect( mResolutionSpinBox, static_cast < void ( QSpinBox::* )( int ) > ( &QSpinBox::valueChanged ), this, &QgsLayoutPropertiesWidget::dpiChanged );
connect( mReferenceMapComboBox, &QgsLayoutItemComboBox::itemChanged, this, &QgsLayoutPropertiesWidget::referenceMapChanged );

mReferenceMapComboBox->setCurrentLayout( mLayout );
mReferenceMapComboBox->setItemType( QgsLayoutItemRegistry::LayoutMap );
connect( mReferenceMapComboBox, &QgsLayoutItemComboBox::itemChanged, this, &QgsLayoutPropertiesWidget::referenceMapChanged );

connect( mLayout, &QgsLayout::changed, this, &QgsLayoutPropertiesWidget::updateGui );

0 comments on commit 40626ca

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