Skip to content
Permalink
Browse files

[GRASS] hidden option fix

  • Loading branch information
blazek committed Sep 3, 2015
1 parent 03916d5 commit bd8b800dd3b88888c7f574eb27cb7bdef6818710
Showing with 9 additions and 11 deletions.
  1. +9 −11 src/plugins/grass/qgsgrassmoduleparam.cpp
@@ -591,7 +591,11 @@ QString QgsGrassModuleOption::value()
{
QString value;

if ( mControlType == LineEdit )
if ( mHidden )
{
return mAnswer;
}
else if ( mControlType == LineEdit )
{
for ( int i = 0; i < mLineEdits.size(); i++ )
{
@@ -688,18 +692,12 @@ QStringList QgsGrassModuleOption::options()
{
QStringList list;

if ( mHidden )
{
list.push_back( mKey + "=" + mAnswer );
}
else
QString val = value();
if ( !val.isEmpty() )
{
QString val = value();
if ( !val.isEmpty() )
{
list.push_back( mKey + "=" + val );
}
list.push_back( mKey + "=" + val );
}

return list;
}

0 comments on commit bd8b800

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