Skip to content

Commit e31027c

Browse files
committed
[processing] fix column autofill in batch mode (fix #11876)
1 parent e42e105 commit e31027c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

python/plugins/processing/gui/BatchPanel.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,30 +193,30 @@ def fillParameterValues(self, column):
193193
if isinstance(widget, QComboBox):
194194
widgetValue = widget.currentIndex()
195195
for row in range(1, self.tblParameters.rowCount()):
196-
self.tblParameters.cellWidget(row, col).setCurrentIndex(widgetValue)
196+
self.tblParameters.cellWidget(row, column).setCurrentIndex(widgetValue)
197197
elif isinstance(widget, ExtentSelectionPanel):
198198
widgetValue = widget.getValue()
199199
for row in range(1, self.tblParameters.rowCount()):
200200
if widgetValue is not None:
201-
self.tblParameters.cellWidget(row, col).text.setText(widgetValue)
201+
self.tblParameters.cellWidget(row, column).text.setText(widgetValue)
202202
else:
203-
self.tblParameters.cellWidget(row, col).text.setText('')
203+
self.tblParameters.cellWidget(row, column).text.setText('')
204204
elif isinstance(widget, CrsSelectionPanel):
205205
widgetValue = widget.getValue()
206206
for row in range(1, self.tblParameters.rowCount()):
207-
self.tblParameters.cellWidget(row, col).setAuthId(widgetValue)
207+
self.tblParameters.cellWidget(row, column).setAuthId(widgetValue)
208208
elif isinstance(widget, FileSelectionPanel):
209209
widgetValue = widget.getValue()
210210
for row in range(1, self.tblParameters.rowCount()):
211-
self.tblParameters.cellWidget(row, col).setText(widgetValue)
211+
self.tblParameters.cellWidget(row, column).setText(widgetValue)
212212
elif isinstance(widget, QLineEdit):
213213
widgetValue = widget.text()
214214
for row in range(1, self.tblParameters.rowCount()):
215-
self.tblParameters.cellWidget(row, col).setText(widgetValue)
215+
self.tblParameters.cellWidget(row, column).setText(widgetValue)
216216
elif isinstance(widget, BatchInputSelectionPanel):
217217
widgetValue = widget.getText()
218218
for row in range(1, self.tblParameters.rowCount()):
219-
self.tblParameters.cellWidget(row, col).setText(widgetValue)
219+
self.tblParameters.cellWidget(row, column).setText(widgetValue)
220220
else:
221221
pass
222222

0 commit comments

Comments
 (0)