Skip to content

Commit c800a8c

Browse files
committed
[processing] fix extent selection in batch mode (fix #11878)
1 parent 69fe922 commit c800a8c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

python/plugins/processing/gui/BatchPanel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ def fillParameterValues(self, column):
198198
widgetValue = widget.getValue()
199199
for row in range(1, self.tblParameters.rowCount()):
200200
if widgetValue is not None:
201-
self.tblParameters.cellWidget(row, column).text.setText(widgetValue)
201+
self.tblParameters.cellWidget(row, column).setExtentFromString(widgetValue)
202202
else:
203-
self.tblParameters.cellWidget(row, column).text.setText('')
203+
self.tblParameters.cellWidget(row, column).setExtentFromString('')
204204
elif isinstance(widget, CrsSelectionPanel):
205205
widgetValue = widget.getValue()
206206
for row in range(1, self.tblParameters.rowCount()):

python/plugins/processing/gui/ExtentSelectionPanel.py

+3
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,6 @@ def getValue(self):
177177
return unicode(self.leText.text())
178178
else:
179179
return self.getMinCoveringExtent()
180+
181+
def setExtentFromString(self, s):
182+
self.leText.setText(s)

python/plugins/processing/gui/ProcessingToolbox.py

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def executeAlgorithmAsBatchProcess(self):
178178
alg = Processing.getAlgorithm(item.alg.commandLineName())
179179
alg = alg.getCopy()
180180
dlg = BatchAlgorithmDialog(alg)
181+
dlg.show()
181182
dlg.exec_()
182183

183184
def executeAlgorithm(self):

0 commit comments

Comments
 (0)