Skip to content


[processing] Fix an exception in modeler when editing a model in
Browse files Browse the repository at this point in the history
which a child algorithm later has a new parameter added
  • Loading branch information
nyalldawson committed Sep 25, 2018
1 parent 11991c5 commit c817e38
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/plugins/processing/modeler/
Expand Up @@ -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()
Expand Down

0 comments on commit c817e38

Please sign in to comment.