Skip to content

Commit

Permalink
[processing] fix column autofill in batch mode (fix #11876)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Dec 18, 2014
1 parent e42e105 commit e31027c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions python/plugins/processing/gui/BatchPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,30 +193,30 @@ def fillParameterValues(self, column):
if isinstance(widget, QComboBox):
widgetValue = widget.currentIndex()
for row in range(1, self.tblParameters.rowCount()):
self.tblParameters.cellWidget(row, col).setCurrentIndex(widgetValue)
self.tblParameters.cellWidget(row, column).setCurrentIndex(widgetValue)
elif isinstance(widget, ExtentSelectionPanel):
widgetValue = widget.getValue()
for row in range(1, self.tblParameters.rowCount()):
if widgetValue is not None:
self.tblParameters.cellWidget(row, col).text.setText(widgetValue)
self.tblParameters.cellWidget(row, column).text.setText(widgetValue)
else:
self.tblParameters.cellWidget(row, col).text.setText('')
self.tblParameters.cellWidget(row, column).text.setText('')
elif isinstance(widget, CrsSelectionPanel):
widgetValue = widget.getValue()
for row in range(1, self.tblParameters.rowCount()):
self.tblParameters.cellWidget(row, col).setAuthId(widgetValue)
self.tblParameters.cellWidget(row, column).setAuthId(widgetValue)
elif isinstance(widget, FileSelectionPanel):
widgetValue = widget.getValue()
for row in range(1, self.tblParameters.rowCount()):
self.tblParameters.cellWidget(row, col).setText(widgetValue)
self.tblParameters.cellWidget(row, column).setText(widgetValue)
elif isinstance(widget, QLineEdit):
widgetValue = widget.text()
for row in range(1, self.tblParameters.rowCount()):
self.tblParameters.cellWidget(row, col).setText(widgetValue)
self.tblParameters.cellWidget(row, column).setText(widgetValue)
elif isinstance(widget, BatchInputSelectionPanel):
widgetValue = widget.getText()
for row in range(1, self.tblParameters.rowCount()):
self.tblParameters.cellWidget(row, col).setText(widgetValue)
self.tblParameters.cellWidget(row, column).setText(widgetValue)
else:
pass

Expand Down

0 comments on commit e31027c

Please sign in to comment.