Skip to content

Commit 1c31bec

Browse files
author
rugginoso
committed
Fix for #1784.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11097 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ed39a17 commit 1c31bec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/plugins/grass/qgsgrassmodule.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -1899,14 +1899,15 @@ QString QgsGrassModuleOption::value()
18991899
else if ( mControlType == CheckBoxes )
19001900
{
19011901
int cnt = 0;
1902-
for ( unsigned int i = 0; i < mCheckBoxes.size(); i++ )
1902+
QStringList values;
1903+
for ( unsigned int i = 0; i < mCheckBoxes.size(); ++i )
19031904
{
19041905
if ( mCheckBoxes[i]->isChecked() )
19051906
{
1906-
if ( cnt > 0 ) value.append( "," );
1907-
value.append( mValues[i] );
1907+
values.append( mValues[i] );
19081908
}
19091909
}
1910+
value = values.join(",");
19101911
}
19111912
return value;
19121913
}

0 commit comments

Comments
 (0)