Skip to content

Commit

Permalink
[processing] correctly set default value in modeler algorithms (fix #…
Browse files Browse the repository at this point in the history
…12767)

(cherry picked from commit d2b2189)
  • Loading branch information
alexbruy committed May 23, 2016
1 parent ce9db2e commit 5a74c68
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -286,7 +286,7 @@ def getWidgetFromParameter(self, param):
elif isinstance(param, ParameterSelection):
item = QComboBox()
item.addItems(param.options)
item.setCurrentIndex(param.default or 1)
item.setCurrentIndex(param.default or 0)
elif isinstance(param, ParameterFixedTable):
item = FixedTablePanel(param)
elif isinstance(param, ParameterRange):
Expand Down

0 comments on commit 5a74c68

Please sign in to comment.