Skip to content

Commit cad3a5a

Browse files
committedMay 2, 2016
Correctly set initial tab in label style dock
1 parent cba8265 commit cad3a5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/app/qgslabelinggui.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,8 @@ QgsLabelingGui::QgsLabelingGui( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas,
494494

495495
connect( mQuadrantBtnGrp, SIGNAL( buttonClicked( int ) ), this, SLOT( updatePreview() ) );
496496

497-
mOptionsTab->setCurrentIndex( 0 );
497+
// set correct initial tab to match displayed setting page
498+
whileBlocking( mOptionsTab )->setCurrentIndex( mLabelStackedWidget->currentIndex() );
498499
}
499500

500501
void QgsLabelingGui::setDockMode( bool enabled )

0 commit comments

Comments
 (0)
Please sign in to comment.