mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] fixed batch processing when there are no visible outputs
This commit is contained in:
parent
2e9a088e44
commit
f4cb03ac29
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user