[processing] fixed batch processing when there are no visible outputs

This commit is contained in:
Victor Olaya 2014-06-20 12:20:56 +02:00
parent 2e9a088e44
commit f4cb03ac29

View File

@ -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: