Skip to content

Commit

Permalink
[processing] fix extent selection in batch mode (fix #11878)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Dec 18, 2014
1 parent 69fe922 commit c800a8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/BatchPanel.py
Expand Up @@ -198,9 +198,9 @@ def fillParameterValues(self, column):
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()):
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/gui/ExtentSelectionPanel.py
Expand Up @@ -177,3 +177,6 @@ def getValue(self):
return unicode(self.leText.text())
else:
return self.getMinCoveringExtent()

def setExtentFromString(self, s):
self.leText.setText(s)
1 change: 1 addition & 0 deletions python/plugins/processing/gui/ProcessingToolbox.py
Expand Up @@ -178,6 +178,7 @@ def executeAlgorithmAsBatchProcess(self):
alg = Processing.getAlgorithm(item.alg.commandLineName())
alg = alg.getCopy()
dlg = BatchAlgorithmDialog(alg)
dlg.show()
dlg.exec_()

def executeAlgorithm(self):
Expand Down

0 comments on commit c800a8c

Please sign in to comment.