aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tools/qmlpuppet/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/qmlpuppet/main.cpp b/src/tools/qmlpuppet/main.cpp
index 90cee644c3..1147217a2f 100644
--- a/src/tools/qmlpuppet/main.cpp
+++ b/src/tools/qmlpuppet/main.cpp
@@ -42,6 +42,10 @@
#include <qtsystemexceptionhandler.h>
#endif
+#ifdef Q_OS_WIN
+#include <windows.h>
+#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();
}