Skip to content

Commit aa43059

Browse files
author
Rado Guzinski
committed
[processing] Make sure the log tab is visible before executing an algorithm
1 parent 11b4751 commit aa43059

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

python/plugins/processing/gui/AlgorithmExecutionDialog.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ def accept(self):
251251
QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
252252

253253
self.setInfo('<b>Algorithm %s starting...</b>' % self.alg.name)
254+
# make sure the log tab is visible before executing the algorithm
255+
try:
256+
self.repaint()
257+
except:
258+
pass
254259
if self.iterateParam:
255260
if UnthreadedAlgorithmExecutor.runalgIterating(self.alg,
256261
self.iterateParam, self):

python/plugins/processing/gui/BatchProcessingDialog.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ def accept(self):
200200
for (i, alg) in enumerate(self.algs):
201201
self.setBaseText('Processing algorithm ' + str(i + 1) + '/'
202202
+ str(len(self.algs)) + '...')
203+
# make sure the log tab is visible before executing the algorithm
204+
try:
205+
self.repaint()
206+
except:
207+
pass
203208
if UnthreadedAlgorithmExecutor.runalg(alg, self) \
204209
and not self.canceled:
205210
if self.load[i]:

0 commit comments

Comments
 (0)