Skip to content

Commit

Permalink
[processing] Fix some field names are rejected in modeler for non-mul…
Browse files Browse the repository at this point in the history
…ti field parameters
  • Loading branch information
nyalldawson committed Jan 30, 2020
1 parent 3aaeb81 commit 9bcd980
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
Expand Up @@ -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();
}
Expand Down

0 comments on commit 9bcd980

Please sign in to comment.