Showing with 2 additions and 1 deletion.
  1. +1 −1 python/utils.py
  2. +1 −0 src/core/CMakeLists.txt
2 changes: 1 addition & 1 deletion python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ SET(QGIS_CORE_HDRS
qgsmaplayer.h
qgsmaplayerregistry.h
qgsmaprenderer.h
qgsmapsettings.h
qgsmaptopixel.h
qgsmessageoutput.h
qgsmimedatautils.h
Expand Down