From 321b3892bc66301135f280476a0edf0a90e7b7bc Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 24 Mar 2011 11:14:21 +0100 Subject: [PATCH] QmlDesigner.qmlPuppet: avoid debug error messages boxes Wit this patch all crashes of qmldump are silent now (in release mode). This means Qt Quick Designer will just (silently) recover. Reviewed-by: Kai Koehne --- src/tools/qmlpuppet/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tools/qmlpuppet/main.cpp b/src/tools/qmlpuppet/main.cpp index 90cee644c3d..1147217a2f5 100644 --- a/src/tools/qmlpuppet/main.cpp +++ b/src/tools/qmlpuppet/main.cpp @@ -42,6 +42,10 @@ #include #endif +#ifdef Q_OS_WIN +#include +#endif + int main(int argc, char *argv[]) { QApplication application(argc, argv); @@ -60,5 +64,9 @@ int main(int argc, char *argv[]) new QmlDesigner::NodeInstanceClientProxy(&application); +#if defined(Q_OS_WIN) && defined(QT_NO_DEBUG) + SetErrorMode(SEM_NOGPFAULTERRORBOX); //We do not want to see any message boxes +#endif + return application.exec(); }