We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed39a17 commit 1c31becCopy full SHA for 1c31bec
src/plugins/grass/qgsgrassmodule.cpp
@@ -1899,14 +1899,15 @@ QString QgsGrassModuleOption::value()
1899
else if ( mControlType == CheckBoxes )
1900
{
1901
int cnt = 0;
1902
- for ( unsigned int i = 0; i < mCheckBoxes.size(); i++ )
+ QStringList values;
1903
+ for ( unsigned int i = 0; i < mCheckBoxes.size(); ++i )
1904
1905
if ( mCheckBoxes[i]->isChecked() )
1906
- if ( cnt > 0 ) value.append( "," );
1907
- value.append( mValues[i] );
+ values.append( mValues[i] );
1908
}
1909
1910
+ value = values.join(",");
1911
1912
return value;
1913
0 commit comments