[processing] Make sure the log tab is visible before executing an algorithm

This commit is contained in:
Rado Guzinski 2014-05-26 17:54:28 +02:00
parent 11b47517d0
commit aa43059d5a
2 changed files with 10 additions and 0 deletions

View File

@ -251,6 +251,11 @@ class AlgorithmExecutionDialog(QtGui.QDialog):
QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
self.setInfo('<b>Algorithm %s starting...</b>' % self.alg.name)
# make sure the log tab is visible before executing the algorithm
try:
self.repaint()
except:
pass
if self.iterateParam:
if UnthreadedAlgorithmExecutor.runalgIterating(self.alg,
self.iterateParam, self):

View File

@ -200,6 +200,11 @@ class BatchProcessingDialog(AlgorithmExecutionDialog):
for (i, alg) in enumerate(self.algs):
self.setBaseText('Processing algorithm ' + str(i + 1) + '/'
+ str(len(self.algs)) + '...')
# make sure the log tab is visible before executing the algorithm
try:
self.repaint()
except:
pass
if UnthreadedAlgorithmExecutor.runalg(alg, self) \
and not self.canceled:
if self.load[i]: