We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5caa403 commit 9a9ab73Copy full SHA for 9a9ab73
src/plugins/grass/qgsgrassmodule.cpp
@@ -3227,8 +3227,11 @@ QStringList QgsGrassModuleField::options()
3227
{
3228
QStringList list;
3229
3230
- QString opt( mKey + "=" + mFieldComboBox->currentText() );
3231
- list.push_back( opt );
+ if ( !mFieldComboBox->currentText().isEmpty() )
+ {
3232
+ QString opt( mKey + "=" + mFieldComboBox->currentText() );
3233
+ list.push_back( opt );
3234
+ }
3235
3236
return list;
3237
}
@@ -3336,8 +3339,11 @@ QStringList QgsGrassModuleSelection::options()
3336
3339
3337
3340
3338
3341
- QString opt( mKey + "=" + mLineEdit->text() );
3342
+ if ( !mLineEdit->text().isEmpty() )
3343
3344
+ QString opt( mKey + "=" + mLineEdit->text() );
3345
3346
3347
3348
3349
0 commit comments