mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] fix extent selection in batch mode (fix #11878)
This commit is contained in:
parent
69fe922a54
commit
c800a8cd74
@ -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()):
|
||||
|
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user