Skip to content

Commit 6573eb3

Browse files
committedFeb 21, 2018
[processing] small fix in the MultipleLayerWidgetWrapper wrapper
1 parent 585a4d3 commit 6573eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/gui/wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def value(self):
693693
options = self._getOptions()
694694
values = [options[i] if isinstance(i, int) else QgsProcessingModelChildParameterSource.fromStaticValue(i)
695695
for i in self.widget.selectedoptions]
696-
if len(values) == 0 and not self.param.flags() & QgsProcessing.FlagOptional:
696+
if len(values) == 0 and not self.param.flags() & QgsProcessingParameterDefinition.FlagOptional:
697697
raise InvalidParameterValue()
698698
return values
699699

0 commit comments

Comments
 (0)
Please sign in to comment.