Skip to content
Permalink
Browse files

[processing] Fix some field names are rejected in modeler for non-mul…

…ti field parameters
  • Loading branch information
nyalldawson committed Jan 30, 2020
1 parent 3aaeb81 commit 9bcd98094c015265e7e94c55f248248e56c24e51
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
@@ -3423,7 +3423,15 @@ QVariant QgsProcessingFieldWidgetWrapper::widgetValue() const
else if ( mPanel )
return mPanel->value();
else if ( mLineEdit )
return mLineEdit->text().split( ';' );
{
const QgsProcessingParameterField *fieldParam = static_cast< const QgsProcessingParameterField * >( parameterDefinition() );
if ( fieldParam->allowMultiple() )
{
return mLineEdit->text().split( ';' );
}
else
return mLineEdit->text();
}
else
return QVariant();
}

0 comments on commit 9bcd980

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