Skip to content
Permalink
Browse files

dont add empty field to options, fixes #4929

  • Loading branch information
blazek committed Feb 28, 2012
1 parent 5caa403 commit 9a9ab73b61ed0a433f244d657c71742270cdd04f
Showing with 10 additions and 4 deletions.
  1. +10 −4 src/plugins/grass/qgsgrassmodule.cpp
@@ -3227,8 +3227,11 @@ QStringList QgsGrassModuleField::options()
{
QStringList list;

QString opt( mKey + "=" + mFieldComboBox->currentText() );
list.push_back( opt );
if ( !mFieldComboBox->currentText().isEmpty() )
{
QString opt( mKey + "=" + mFieldComboBox->currentText() );
list.push_back( opt );
}

return list;
}
@@ -3336,8 +3339,11 @@ QStringList QgsGrassModuleSelection::options()
{
QStringList list;

QString opt( mKey + "=" + mLineEdit->text() );
list.push_back( opt );
if ( !mLineEdit->text().isEmpty() )
{
QString opt( mKey + "=" + mLineEdit->text() );
list.push_back( opt );
}

return list;
}

0 comments on commit 9a9ab73

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