From f4cb03ac2901d31501ca1bcdcae9e8421e3c0a01 Mon Sep 17 00:00:00 2001 From: Victor Olaya Date: Fri, 20 Jun 2014 12:20:56 +0200 Subject: [PATCH] [processing] fixed batch processing when there are no visible outputs --- python/plugins/processing/gui/BatchProcessingDialog.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/python/plugins/processing/gui/BatchProcessingDialog.py b/python/plugins/processing/gui/BatchProcessingDialog.py index 18711aeabab..fa4c780d55b 100644 --- a/python/plugins/processing/gui/BatchProcessingDialog.py +++ b/python/plugins/processing/gui/BatchProcessingDialog.py @@ -189,8 +189,11 @@ class BatchProcessingDialog(AlgorithmExecutionDialog): self.algs = None return self.algs.append(alg) - widget = self.table.cellWidget(row, col) - self.load.append(widget.currentIndex() == 0) + if self.alg.getVisibleOutputsCount(): + widget = self.table.cellWidget(row, col) + self.load.append(widget.currentIndex() == 0) + else: + self.load.append(False) QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) self.table.setEnabled(False) @@ -204,8 +207,7 @@ class BatchProcessingDialog(AlgorithmExecutionDialog): self.repaint() except: pass - if UnthreadedAlgorithmExecutor.runalg(alg, self) \ - and not self.canceled: + if UnthreadedAlgorithmExecutor.runalg(alg, self) and not self.canceled: if self.load[i]: handleAlgorithmResults(alg, self, False) else: