Navigation Menu

Skip to content

Commit

Permalink
[processing] fixed handling of tables in models
Browse files Browse the repository at this point in the history
Fixes #11694
  • Loading branch information
volaya committed Nov 21, 2014
1 parent 530b15a commit 810cb3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/plugins/processing/modeler/ModelerParametersDialog.py
Expand Up @@ -261,10 +261,12 @@ def getWidgetFromParameter(self, param):
item.addItem(self.resolveValueDescription(layer), layer)
elif isinstance(param, ParameterTable):
item = QComboBox()
item.setEditable(True)
layers = self.getAvailableValuesOfType(ParameterTable, OutputTable)
tables = self.getAvailableValuesOfType(ParameterTable, OutputTable)
layers = self.getAvailableValuesOfType(ParameterVector, OutputVector)
if param.optional:
item.addItem(self.NOT_SELECTED, None)
for table in tables:
item.addItem(self.resolveValueDescription(table), table)
for layer in layers:
item.addItem(self.resolveValueDescription(layer), layer)
elif isinstance(param, ParameterBoolean):
Expand Down

0 comments on commit 810cb3f

Please sign in to comment.