We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03916d5 commit bd8b800Copy full SHA for bd8b800
src/plugins/grass/qgsgrassmoduleparam.cpp
@@ -591,7 +591,11 @@ QString QgsGrassModuleOption::value()
591
{
592
QString value;
593
594
- if ( mControlType == LineEdit )
+ if ( mHidden )
595
+ {
596
+ return mAnswer;
597
+ }
598
+ else if ( mControlType == LineEdit )
599
600
for ( int i = 0; i < mLineEdits.size(); i++ )
601
@@ -688,18 +692,12 @@ QStringList QgsGrassModuleOption::options()
688
692
689
693
QStringList list;
690
694
691
- if ( mHidden )
- {
- list.push_back( mKey + "=" + mAnswer );
- }
695
- else
+ QString val = value();
696
+ if ( !val.isEmpty() )
697
- QString val = value();
698
- if ( !val.isEmpty() )
699
700
- list.push_back( mKey + "=" + val );
701
+ list.push_back( mKey + "=" + val );
702
}
+
703
return list;
704
705
0 commit comments