mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
[processing] small fix in the MultipleLayerWidgetWrapper wrapper
This commit is contained in:
parent
585a4d3782
commit
6573eb30e7
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user