Skip to content
Permalink
Browse files

[processing] correctly set default value in modeler algorithms (fix #…

…12767)

(cherry picked from commit d2b2189)
  • Loading branch information
alexbruy committed May 23, 2016
1 parent ce9db2e commit 5a74c684021576a72616dbd2f848abe3b81b7857
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/modeler/ModelerParametersDialog.py
@@ -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):

0 comments on commit 5a74c68

Please sign in to comment.
You can’t perform that action at this time.