Skip to content

Commit 6f1b875

Browse files
committed
fix restoration of identify mode
1 parent e1ace3a commit 6f1b875

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/app/qgsidentifyresultsdialog.cpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,13 @@ QgsIdentifyResultsDialog::QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidge
289289
lstResults->setColumnWidth( 0, width );
290290
}
291291

292+
// retrieve mode before on_cmbIdentifyMode_currentIndexChanged resets it on addItem
293+
int identifyMode = mySettings.value( "/Map/identifyMode", 0 ).toInt();
294+
292295
cmbIdentifyMode->addItem( tr( "Current layer" ), 0 );
293296
cmbIdentifyMode->addItem( tr( "Top down, stop at first" ), 1 );
294297
cmbIdentifyMode->addItem( tr( "Top down" ), 2 );
295298
cmbIdentifyMode->addItem( tr( "Layer selection" ), 3 );
296-
297-
int identifyMode = mySettings.value( "/Map/identifyMode", 0 ).toInt();
298299
cmbIdentifyMode->setCurrentIndex( cmbIdentifyMode->findData( identifyMode ) );
299300
cbxAutoFeatureForm->setChecked( mySettings.value( "/Map/identifyAutoFeatureForm", false ).toBool() );
300301

0 commit comments

Comments
 (0)