[processing] Fix invalid attribute's name

This commit is contained in:
Blottiere Paul 2018-05-21 09:32:37 +01:00 committed by Nyall Dawson
parent b21632602f
commit dcc79fcfbf

View File

@ -985,7 +985,7 @@ class EnumWidgetWrapper(WidgetWrapper):
else:
self.combobox = QComboBox()
if self.param.flags() & QgsProcessingParameterDefinition.FlagOptional:
self.combo.addItem(self.NOT_SELECTED, self.NOT_SET_OPTION)
self.combobox.addItem(self.NOT_SELECTED, self.NOT_SET_OPTION)
for i, option in enumerate(self.param.options()):
self.combobox.addItem(option, i)
values = self.dialog.getAvailableValuesOfType(QgsProcessingParameterEnum)