Skip to content
Permalink
Browse files

[processing] fix column autofill in batch mode (fix #11876)

  • Loading branch information
alexbruy committed Dec 18, 2014
1 parent e42e105 commit e31027c8401ce6bb48f65736b260da1d51c7d270
Showing with 7 additions and 7 deletions.
  1. +7 −7 python/plugins/processing/gui/BatchPanel.py
@@ -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

0 comments on commit e31027c

Please sign in to comment.
You can’t perform that action at this time.