mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -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()
|
options = self._getOptions()
|
||||||
values = [options[i] if isinstance(i, int) else QgsProcessingModelChildParameterSource.fromStaticValue(i)
|
values = [options[i] if isinstance(i, int) else QgsProcessingModelChildParameterSource.fromStaticValue(i)
|
||||||
for i in self.widget.selectedoptions]
|
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()
|
raise InvalidParameterValue()
|
||||||
return values
|
return values
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user