Skip to content
Permalink
Browse files

[GRASS] fixed setting default value in input combo

  • Loading branch information
blazek committed Oct 8, 2015
1 parent 35444c4 commit 7be1b642fd345b0fa6f1633aca6f5d3a6f0e41b6
Showing with 1 addition and 2 deletions.
  1. +0 −1 src/plugins/grass/CMakeLists.txt
  2. +1 −1 src/plugins/grass/qgsgrassmoduleparam.cpp
@@ -240,7 +240,6 @@ INSTALL (FILES themes/default/grass_arrow.svg themes/default/grass_plus.svg them
IF(NOT WIN32)
INSTALL(DIRECTORY qtermwidget/kb-layouts/ DESTINATION "${KB_LAYOUT_DIR}" FILES_MATCHING PATTERN "*.keytab" )
INSTALL(DIRECTORY qtermwidget/kb-layouts/ DESTINATION "${KB_LAYOUT_DIR}" )
message(STATUS "Keyboard layouts will be installed in: ${KB_LAYOUT_DIR}")
INSTALL(DIRECTORY qtermwidget/color-schemes/ DESTINATION "${COLORSCHEMES_DIR}" FILES_MATCHING PATTERN "*.*schem*")
ENDIF(NOT WIN32)

@@ -322,7 +322,7 @@ QgsGrassModuleOption::QgsGrassModuleOption( QgsGrassModule *module, QString key,
if ( mControlType == ComboBox )
{
mComboBox->addItem( desc );
if ( mAnswer.length() > 0 && desc == mAnswer )
if ( mAnswer.length() > 0 && val == mAnswer )
{
mComboBox->setCurrentIndex( mComboBox->count() - 1 );
}

0 comments on commit 7be1b64

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