diff --git a/python/plugins/processing/gui/BatchPanel.py b/python/plugins/processing/gui/BatchPanel.py index 49a199613bc..af326065dbe 100644 --- a/python/plugins/processing/gui/BatchPanel.py +++ b/python/plugins/processing/gui/BatchPanel.py @@ -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()): diff --git a/python/plugins/processing/gui/ExtentSelectionPanel.py b/python/plugins/processing/gui/ExtentSelectionPanel.py index 72cfeceab03..df400e9d55f 100644 --- a/python/plugins/processing/gui/ExtentSelectionPanel.py +++ b/python/plugins/processing/gui/ExtentSelectionPanel.py @@ -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) diff --git a/python/plugins/processing/gui/ProcessingToolbox.py b/python/plugins/processing/gui/ProcessingToolbox.py index 4b7fc313006..37825aabc53 100644 --- a/python/plugins/processing/gui/ProcessingToolbox.py +++ b/python/plugins/processing/gui/ProcessingToolbox.py @@ -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):