Disable error message box on WinRT
While exception handling methods are not available on WinRT, the debug mode ones are. This way we can suppress error dialogs from popping up like on desktop windows. Change-Id: Id6e9666af9274d373e7d46e3f9e44892a2bd0dbc Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
560d33ad04
commit
05345f2a55
@ -2175,13 +2175,15 @@ int QTest::qExec(QObject *testObject, int argc, char **argv)
|
||||
|
||||
qtest_qParseArgs(argc, argv, false);
|
||||
|
||||
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) && !defined(Q_OS_WINRT)
|
||||
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
|
||||
if (!noCrashHandler) {
|
||||
# ifndef Q_CC_MINGW
|
||||
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG);
|
||||
# endif
|
||||
# ifndef Q_OS_WINRT
|
||||
SetErrorMode(SetErrorMode(0) | SEM_NOGPFAULTERRORBOX);
|
||||
SetUnhandledExceptionFilter(windowsFaultHandler);
|
||||
# endif
|
||||
} // !noCrashHandler
|
||||
#endif // Q_OS_WIN) && !Q_OS_WINCE && !Q_OS_WINRT
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user