Skip to content
Permalink
Browse files
[processing] Fix gdal algorithms immediately show wrong or missing
parameter value warnings

Fixes #46532
  • Loading branch information
nyalldawson committed Dec 21, 2021
1 parent 47edeb2 commit 0d332d34ec3aceeecc2525aa8c806baa8fa85640
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/algs/gdal/GdalAlgorithmDialog.py
@@ -120,7 +120,10 @@ def parametersHaveChanged(self):
context = createContext()
feedback = QgsProcessingFeedback()
try:
parameters = self.dialog.createProcessingParameters()
# messy as all heck, but we don't want to call the dialog's implementation of
# createProcessingParameters as we want to catch the exceptions raised by the
# parameter panel instead...
parameters = {} if self.dialog.mainWidget() is None else self.dialog.mainWidget().createProcessingParameters()
for output in self.algorithm().destinationParameterDefinitions():
if not output.name() in parameters or parameters[output.name()] is None:
if not output.flags() & QgsProcessingParameterDefinition.FlagOptional:

0 comments on commit 0d332d3

Please sign in to comment.