Skip to content
Permalink
Browse files

Cleaner messagebar item popping

  • Loading branch information
nyalldawson committed Sep 17, 2018
1 parent bfc5a17 commit 209b6ee8534ebc9154d27c70ab380ac396487fc7
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/gui/MessageBarProgress.py
@@ -45,8 +45,8 @@ def __init__(self, algname=None):
self.progress.setMaximum(100)
self.progress.setAlignment(Qt.AlignLeft | Qt.AlignVCenter)
self.progressMessageBar.layout().addWidget(self.progress)
iface.messageBar().pushWidget(self.progressMessageBar,
Qgis.Info)
self.message_bar_item = iface.messageBar().pushWidget(self.progressMessageBar,
Qgis.Info)

def reportError(self, msg, fatalError=False):
self.msg.append(msg)
@@ -57,7 +57,7 @@ def close(self):
dlg.setTitle(QCoreApplication.translate('MessageBarProgress', 'Problem executing algorithm'))
dlg.setMessage("<br>".join(self.msg))
dlg.exec_()
iface.messageBar().clearWidgets()
iface.messageBar().popWidget(self.message_bar_item)

def tr(self, string, context=''):
if context == '':

0 comments on commit 209b6ee

Please sign in to comment.
You can’t perform that action at this time.