mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Revert "fixes #21374: ignore optional output parameters"
This reverts commit af2421541c78742a233b3c5a00cbbd6c11ceaaab.
This commit is contained in:
parent
91d430a0cb
commit
46da10a1e8
@ -165,11 +165,9 @@ class AlgorithmDialog(QgsProcessingAlgorithmDialogBase):
|
||||
parameters[param.name()] = value
|
||||
if param.isDestination():
|
||||
context = dataobjects.createContext()
|
||||
#TODO: could we ignore below check if parameter is optional?
|
||||
ok, error = self.algorithm().provider().isSupportedOutputValue(value, param, context)
|
||||
if not ok:
|
||||
if not param.flags() & QgsProcessingParameterDefinition.FlagOptional:
|
||||
raise AlgorithmDialogBase.InvalidOutputExtension(widget, error)
|
||||
raise AlgorithmDialogBase.InvalidOutputExtension(widget, error)
|
||||
|
||||
return self.algorithm().preprocessParameters(parameters)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user