eric6/E5Gui/E5ErrorMessage.py

changeset 7317
cada9fd4ad3a
parent 7252
c5e3705073eb
child 7319
49ea50a9a61e
equal deleted inserted replaced
7316:abe6dd39e4ee 7317:cada9fd4ad3a
14 ) 14 )
15 from PyQt5.QtWidgets import QErrorMessage, qApp, QDialog 15 from PyQt5.QtWidgets import QErrorMessage, qApp, QDialog
16 16
17 import Globals 17 import Globals
18 import Utilities 18 import Utilities
19 import Preferences
19 20
20 21
21 _msgHandlerDialog = None 22 _msgHandlerDialog = None
22 _origMsgHandler = None 23 _origMsgHandler = None
23 24
108 @param context context information 109 @param context context information
109 @type QMessageLogContext 110 @type QMessageLogContext
110 @param message message to be shown 111 @param message message to be shown
111 @type bytes 112 @type bytes
112 """ 113 """
114 if msgType < Preferences.getUI("MinimumMessageTypeSeverity"):
115 # severity is lower than configured
116 # just ignore the message
117 return
118
113 if _msgHandlerDialog: 119 if _msgHandlerDialog:
114 try: 120 try:
115 if msgType == QtDebugMsg: 121 if msgType == QtDebugMsg:
116 messageType = "Debug Message:" 122 messageType = "Debug Message:"
117 elif msgType == QtWarningMsg: 123 elif msgType == QtWarningMsg:

eric ide

mercurial