Skip to content

Commit

Permalink
Merge pull request #2121 from slarosa/algname_messagebar
Browse files Browse the repository at this point in the history
[processing] add algorithm name to messagebar while running
  • Loading branch information
volaya committed Jun 8, 2015
2 parents 77bf10b + 941107d commit cce3bb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/Processing.py
Expand Up @@ -347,7 +347,7 @@ def runAlgorithm(algOrName, onFinish, *args):

progress = None
if iface is not None :
progress = MessageBarProgress()
progress = MessageBarProgress(alg.name)
ret = runalg(alg, progress)
if onFinish is not None and ret:
onFinish(alg, progress)
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/MessageBarProgress.py
Expand Up @@ -33,9 +33,9 @@

class MessageBarProgress:

def __init__(self):
def __init__(self, algname=None):
self.progressMessageBar = \
iface.messageBar().createMessage(self.tr('Executing algorithm'))
iface.messageBar().createMessage(self.tr('Executing algorithm <i>{0}</i>'.format(algname if algname else '')))
self.progress = QProgressBar()
self.progress.setMaximum(100)
self.progress.setAlignment(Qt.AlignLeft | Qt.AlignVCenter)
Expand Down

0 comments on commit cce3bb2

Please sign in to comment.