Skip to content

Commit affc8f7

Browse files
committed
[processing] correctly return widget in TableFieldWidgetWrapper
1 parent ae0e9c8 commit affc8f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python/plugins/processing/gui/wrappers.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -745,9 +745,10 @@ def createWidget(self):
745745
widget = QComboBox()
746746
return widget
747747
elif self.dialogType == DIALOG_BATCH:
748-
item = QLineEdit()
749-
if self.param.default is not None:
750-
item.setText(self.param.default)
748+
widget = QLineEdit()
749+
if self.param.default:
750+
widget.setText(self.param.default)
751+
return widget
751752
else:
752753
widget = QComboBox()
753754
widget.setEditable(True)

0 commit comments

Comments
 (0)