fix(windows): remove our hack to crash on windows for fatal logs

no need to carry some hack when we can use the same standard and cross
platform feature directly from Qt code

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2025-08-28 16:03:19 +02:00
parent a4263b73e6
commit 7774f575b8
No known key found for this signature in database
GPG Key ID: 7D0F74F05C22F553

View File

@ -164,10 +164,6 @@ void Logger::doLog(QtMsgType type, const QMessageLogContext &ctx, const QString
dumpCrashLog();
closeNoLock();
s_originalMessageHandler(type, ctx, message);
#if defined(Q_OS_WIN)
// Make application terminate in a way that can be caught by the crash reporter
Utility::crash();
#endif
}
}
emit logWindowLog(msg);