Skip to content

Commit

Permalink
[processing] add missed error() method
Browse files Browse the repository at this point in the history
(cherry picked from commit 6a7fa7d)
  • Loading branch information
alexbruy committed Aug 23, 2016
1 parent f5ab36c commit 7d94a59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/core/SilentProgress.py
Expand Up @@ -37,16 +37,16 @@ def setText(self, text):
def setPercentage(self, i): def setPercentage(self, i):
pass pass


def setInfo(self, _): def setInfo(self, msg):
pass pass


def setCommand(self, _): def setCommand(self, msg):
pass pass


def setDebugInfo(self, _): def setDebugInfo(self, msg):
pass pass


def setConsoleInfo(self, _): def setConsoleInfo(self, msg):
pass pass


def close(self): def close(self):
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/gui/AlgorithmDialogBase.py
Expand Up @@ -171,6 +171,9 @@ def setText(self, text):
self.setInfo(text, False) self.setInfo(text, False)
QCoreApplication.processEvents() QCoreApplication.processEvents()


def error(self, text):
self.setInfo(msg, error=True)

def setParamValues(self): def setParamValues(self):
pass pass


Expand Down

0 comments on commit 7d94a59

Please sign in to comment.