mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
fix restoration of identify mode
This commit is contained in:
parent
e1ace3a74d
commit
6f1b875aec
@ -289,12 +289,13 @@ QgsIdentifyResultsDialog::QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidge
|
||||
lstResults->setColumnWidth( 0, width );
|
||||
}
|
||||
|
||||
// retrieve mode before on_cmbIdentifyMode_currentIndexChanged resets it on addItem
|
||||
int identifyMode = mySettings.value( "/Map/identifyMode", 0 ).toInt();
|
||||
|
||||
cmbIdentifyMode->addItem( tr( "Current layer" ), 0 );
|
||||
cmbIdentifyMode->addItem( tr( "Top down, stop at first" ), 1 );
|
||||
cmbIdentifyMode->addItem( tr( "Top down" ), 2 );
|
||||
cmbIdentifyMode->addItem( tr( "Layer selection" ), 3 );
|
||||
|
||||
int identifyMode = mySettings.value( "/Map/identifyMode", 0 ).toInt();
|
||||
cmbIdentifyMode->setCurrentIndex( cmbIdentifyMode->findData( identifyMode ) );
|
||||
cbxAutoFeatureForm->setChecked( mySettings.value( "/Map/identifyAutoFeatureForm", false ).toBool() );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user