Skip to content
Permalink
Browse files

[layouts] fix overview map combobox filter

  • Loading branch information
nirvn committed Dec 22, 2017
1 parent 22098a4 commit 1e3526ea4fa59b85c5f2857e7e7ffe919858ebbd
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/layout/qgslayoutmapwidget.cpp
@@ -109,8 +109,6 @@ QgsLayoutMapWidget::QgsLayoutMapWidget( QgsLayoutItemMap *item )
mLayerListFromPresetButton->setToolTip( tr( "Set layer list from a map theme" ) );
connect( menuKeepLayers, &QMenu::aboutToShow, this, &QgsLayoutMapWidget::aboutToShowKeepLayersVisibilityPresetsMenu );

mOverviewFrameMapComboBox->setItemType( QgsLayoutItemRegistry::LayoutMap );

connect( item, &QgsLayoutObject::changed, this, &QgsLayoutMapWidget::updateGuiElements );

#if 0 //TODO
@@ -125,6 +123,7 @@ QgsLayoutMapWidget::QgsLayoutMapWidget( QgsLayoutItemMap *item )
}
#endif
mOverviewFrameMapComboBox->setCurrentLayout( item->layout() );
mOverviewFrameMapComboBox->setItemType( QgsLayoutItemRegistry::LayoutMap );
mOverviewFrameStyleButton->registerExpressionContextGenerator( item );

connect( mOverviewFrameMapComboBox, &QgsLayoutItemComboBox::itemChanged, this, &QgsLayoutMapWidget::overviewMapChanged );

0 comments on commit 1e3526e

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