Skip to content

Commit

Permalink
Update src/gui/processing/qgsprocessingfieldmapwidgetwrapper.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
2 people authored and nyalldawson committed Oct 21, 2020
1 parent e3db51f commit 7854c61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/processing/qgsprocessingfieldmapwidgetwrapper.cpp
Expand Up @@ -147,7 +147,7 @@ void QgsProcessingFieldMapPanelWidget::setValue( const QVariant &value )
if ( constraints & QgsFieldConstraints::ConstraintUnique )
fieldConstraints.setConstraint( QgsFieldConstraints::ConstraintUnique );
if ( constraints & QgsFieldConstraints::ConstraintExpression )
fieldConstraints.setConstraint( QgsFieldConstraints::ConstraintUnique );
fieldConstraints.setConstraint( QgsFieldConstraints::ConstraintExpression );

f.setConstraints( fieldConstraints );
}
Expand Down Expand Up @@ -415,4 +415,3 @@ const QgsVectorLayer *QgsProcessingFieldMapWidgetWrapper::linkedVectorLayer() co

/// @endcond


0 comments on commit 7854c61

Please sign in to comment.