Skip to content
Permalink
Browse files
[processing] fixed batch processing when there are no visible outputs
  • Loading branch information
volaya committed Jun 20, 2014
1 parent 2e9a088 commit f4cb03a
Showing 1 changed file with 6 additions and 4 deletions.
@@ -189,8 +189,11 @@ def accept(self):
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 @@ def accept(self):
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:

0 comments on commit f4cb03a

Please sign in to comment.