mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user