Skip to content

Commit

Permalink
[processing] small fix in the MultipleLayerWidgetWrapper wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 21, 2018
1 parent 585a4d3 commit 6573eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/wrappers.py
Expand Up @@ -693,7 +693,7 @@ def value(self):
options = self._getOptions()
values = [options[i] if isinstance(i, int) else QgsProcessingModelChildParameterSource.fromStaticValue(i)
for i in self.widget.selectedoptions]
if len(values) == 0 and not self.param.flags() & QgsProcessing.FlagOptional:
if len(values) == 0 and not self.param.flags() & QgsProcessingParameterDefinition.FlagOptional:
raise InvalidParameterValue()
return values

Expand Down

0 comments on commit 6573eb3

Please sign in to comment.