From c800a8cd74272458b9a2965078b6dcb4b229b0c7 Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Thu, 18 Dec 2014 09:47:24 +0200 Subject: [PATCH] [processing] fix extent selection in batch mode (fix #11878) --- python/plugins/processing/gui/BatchPanel.py | 4 ++-- python/plugins/processing/gui/ExtentSelectionPanel.py | 3 +++ python/plugins/processing/gui/ProcessingToolbox.py | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) 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):