Skip to content
Permalink
Browse files

[processing] fixed handling of tables in models

Fixes #11694
  • Loading branch information
volaya committed Nov 21, 2014
1 parent 530b15a commit 810cb3fb999d9fdd6c1d6fe7b353ab83ce85b17c
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/plugins/processing/modeler/ModelerParametersDialog.py
@@ -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):

0 comments on commit 810cb3f

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