Skip to content

Commit

Permalink
Fixed responsiveness of suspended module progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
rexissimus committed Aug 3, 2015
1 parent 1745a1b commit 3b34969
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions vistrails/gui/job_monitor.py
Expand Up @@ -427,11 +427,9 @@ def checkJob(self, module, id, handle):
item.job.start))
progress.setLabelText(labelText)
while not self.jobMonitor.isDone(handle):
i = 0
while i < interval:
i += 1
time.sleep(1)
QtCore.QCoreApplication.processEvents()
dieTime = QtCore.QTime.currentTime().addMSecs(interval*1000)
while QtCore.QTime.currentTime() < dieTime:
QtCore.QCoreApplication.processEvents(QtCore.QEventLoop.AllEvents, 100)
if progress.wasCanceled():
# this does not work, need to create a new progress dialog
#progress.goOn()
Expand Down

0 comments on commit 3b34969

Please sign in to comment.