Fix regression in fatal log message handler

Don't bypass extra handling of fatal messages when
invoked in the main thread from a different thread.
This commit is contained in:
oktal3700
2022-08-29 22:30:15 +01:00
committed by Mat Sutcliffe
parent 6c9b2890a7
commit 3743287d1c

View File

@@ -51,7 +51,7 @@ namespace BlackMisc
{
// Fatal message means this thread is about to crash the application. A queued connection would be useless.
// Blocking queued connection means we pause this thread just long enough to let the main thread handle the message.
QMetaObject::invokeMethod(CLogHandler::instance(), invokee, Qt::BlockingQueuedConnection);
QMetaObject::invokeMethod(CLogHandler::instance(), [ & ] { messageHandler(type, context, message); }, Qt::BlockingQueuedConnection);
return;
}
#if defined(Q_CC_MSVC) && defined(QT_NO_DEBUG)