Skip to content

Commit

Permalink
[processing] add algorithm name to messagebar while running
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jun 8, 2015
1 parent 77bf10b commit 941107d
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 941107d

Please sign in to comment.