Skip to content

Commit

Permalink
Revert "fixes #21374: ignore optional output parameters"
Browse files Browse the repository at this point in the history
This reverts commit af24215.
  • Loading branch information
Rashad Kanavath authored and nyalldawson committed Mar 20, 2019
1 parent 91d430a commit 46da10a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/plugins/processing/gui/AlgorithmDialog.py
Expand Up @@ -165,11 +165,9 @@ def getParameterValues(self):
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)

Expand Down

0 comments on commit 46da10a

Please sign in to comment.