Skip to content

Commit

Permalink
[processing] Make sure the log tab is visible before executing an alg…
Browse files Browse the repository at this point in the history
…orithm
  • Loading branch information
Rado Guzinski committed May 26, 2014
1 parent 11b4751 commit aa43059
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/plugins/processing/gui/AlgorithmExecutionDialog.py
Expand Up @@ -251,6 +251,11 @@ def accept(self):
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):
Expand Down
5 changes: 5 additions & 0 deletions python/plugins/processing/gui/BatchProcessingDialog.py
Expand Up @@ -200,6 +200,11 @@ def accept(self):
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]:
Expand Down

0 comments on commit aa43059

Please sign in to comment.