Skip to content

Commit 1e3526e

Browse files
authoredDec 22, 2017
[layouts] fix overview map combobox filter
1 parent 22098a4 commit 1e3526e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/app/layout/qgslayoutmapwidget.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ QgsLayoutMapWidget::QgsLayoutMapWidget( QgsLayoutItemMap *item )
109109
mLayerListFromPresetButton->setToolTip( tr( "Set layer list from a map theme" ) );
110110
connect( menuKeepLayers, &QMenu::aboutToShow, this, &QgsLayoutMapWidget::aboutToShowKeepLayersVisibilityPresetsMenu );
111111

112-
mOverviewFrameMapComboBox->setItemType( QgsLayoutItemRegistry::LayoutMap );
113-
114112
connect( item, &QgsLayoutObject::changed, this, &QgsLayoutMapWidget::updateGuiElements );
115113

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.