[processing] correctly return widget in TableFieldWidgetWrapper

This commit is contained in:
volaya 2016-09-19 09:15:07 +02:00
parent ae0e9c8442
commit affc8f7ca5

View File

@ -745,9 +745,10 @@ class TableFieldWidgetWrapper(WidgetWrapper):
widget = QComboBox()
return widget
elif self.dialogType == DIALOG_BATCH:
item = QLineEdit()
if self.param.default is not None:
item.setText(self.param.default)
widget = QLineEdit()
if self.param.default:
widget.setText(self.param.default)
return widget
else:
widget = QComboBox()
widget.setEditable(True)