[processing] small fix in the MultipleLayerWidgetWrapper wrapper

This commit is contained in:
nirvn 2018-02-21 11:59:41 +07:00
parent 585a4d3782
commit 6573eb30e7

View File

@ -693,7 +693,7 @@ class MultipleLayerWidgetWrapper(WidgetWrapper):
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