--- a/eric6/E5Gui/E5ErrorMessage.py Tue Oct 06 17:55:10 2020 +0200 +++ b/eric6/E5Gui/E5ErrorMessage.py Tue Oct 06 17:56:16 2020 +0200 @@ -12,7 +12,9 @@ qInstallMessageHandler, QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg, QThread, QMetaObject, Qt, Q_ARG, QSettings ) -from PyQt5.QtWidgets import QErrorMessage, qApp, QDialog +from PyQt5.QtWidgets import QErrorMessage, QDialog + +from E5Gui.E5Application import e5App import Globals import Utilities @@ -144,7 +146,7 @@ else: msg = "<p><b>{0}</b></p><p>{1}</p>".format( messageType, Utilities.html_uencode(message)) - if QThread.currentThread() == qApp.thread(): + if QThread.currentThread() == e5App().thread(): _msgHandlerDialog.showMessage(msg) else: QMetaObject.invokeMethod(