Skip to content
Permalink
Browse files

[processing] fix handling of boolean parameters in modeller

  • Loading branch information
alexbruy committed Oct 9, 2014
1 parent d8c38b5 commit 55181c634accfc98ebed4ac3e22c3c45a711f5a5
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/processing/modeler/ModelerParametersDialog.py
@@ -269,6 +269,8 @@ def getWidgetFromParameter(self, param):
item.addItem(self.resolveValueDescription(layer), layer)
elif isinstance(param, ParameterBoolean):
item = QComboBox()
item.addItem('Yes')
item.addItem('No')
bools = self.getAvailableValuesOfType(ParameterBoolean, None)
for b in bools:
item.addItem(self.resolveValueDescription(b), b)

0 comments on commit 55181c6

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