Skip to content
Browse files
[processing] Fix an exception in modeler when editing a model in
which a child algorithm later has a new parameter added
  • Loading branch information
nyalldawson committed Sep 25, 2018
1 parent 11991c5 commit c817e38be2cd6efcdc2263fac2ba6cfd05099f7b
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/plugins/processing/modeler/
@@ -308,13 +308,17 @@ def setPreviousValues(self):
value = value[0]
elif isinstance(value, list) and len(value) == 0:
value = None
if value is None:
value = param.defaultValue()

wrapper = self.wrappers[]
if issubclass(wrapper.__class__, QgsProcessingModelerParameterWidget):
if value is None:
value = QgsProcessingModelChildParameterSource.fromStaticValue(param.defaultValue())

if value is None:
value = param.defaultValue()

if isinstance(value,
QgsProcessingModelChildParameterSource) and value.source() == QgsProcessingModelChildParameterSource.StaticValue:
value = value.staticValue()

0 comments on commit c817e38

Please sign in to comment.