[processing] fix extent selection in batch mode (fix #11878)

This commit is contained in:
Alexander Bruy 2014-12-18 09:47:24 +02:00
parent 69fe922a54
commit c800a8cd74
3 changed files with 6 additions and 2 deletions

View File

@ -198,9 +198,9 @@ class BatchPanel(QWidget, Ui_Form):
widgetValue = widget.getValue()
for row in range(1, self.tblParameters.rowCount()):
if widgetValue is not None:
self.tblParameters.cellWidget(row, column).text.setText(widgetValue)
self.tblParameters.cellWidget(row, column).setExtentFromString(widgetValue)
else:
self.tblParameters.cellWidget(row, column).text.setText('')
self.tblParameters.cellWidget(row, column).setExtentFromString('')
elif isinstance(widget, CrsSelectionPanel):
widgetValue = widget.getValue()
for row in range(1, self.tblParameters.rowCount()):

View File

@ -177,3 +177,6 @@ class ExtentSelectionPanel(QWidget, Ui_Form):
return unicode(self.leText.text())
else:
return self.getMinCoveringExtent()
def setExtentFromString(self, s):
self.leText.setText(s)

View File

@ -178,6 +178,7 @@ class ProcessingToolbox(QDockWidget, Ui_ProcessingToolbox):
alg = Processing.getAlgorithm(item.alg.commandLineName())
alg = alg.getCopy()
dlg = BatchAlgorithmDialog(alg)
dlg.show()
dlg.exec_()
def executeAlgorithm(self):