Skip to content
Permalink
Browse files

fix restoration of identify mode

  • Loading branch information
jef-n committed Apr 30, 2014
1 parent e1ace3a commit 6f1b875aecaec4c562e4050a17a127d057bd3f36
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/qgsidentifyresultsdialog.cpp
@@ -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() );

0 comments on commit 6f1b875

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