From 91ecc5f31bfb942bcd249affcd69a2643c24a42b Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Mon, 24 Feb 2014 02:03:42 +0100 Subject: [PATCH] add 'warning' to the respective python message log tab --- python/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/utils.py b/python/utils.py index 87dbdbcd523..e7345fdea6e 100755 --- a/python/utils.py +++ b/python/utils.py @@ -52,7 +52,7 @@ def showWarning(message, category, filename, lineno, file=None, line=None): stk += s.decode('utf-8', 'replace') QgsMessageLog.logMessage( "warning:%s\ntraceback:%s" % ( warnings.formatwarning(message, category, filename, lineno), stk), - QCoreApplication.translate( "Python", "Python" ) + QCoreApplication.translate( "Python", "Python warning" ) ) warnings.showwarning = showWarning