Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] fix handling of boolean parameters in modeller
  • Loading branch information
alexbruy committed Oct 9, 2014
1 parent d8c38b5 commit 55181c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/modeler/ModelerParametersDialog.py
Expand Up @@ -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)
Expand Down

0 comments on commit 55181c6

Please sign in to comment.