aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2011-03-24 11:14:21 +0100
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2011-03-24 11:15:19 +0100
commit321b3892bc66301135f280476a0edf0a90e7b7bc (patch)
tree1f458911f7502e3a12637589a85889f4b34fcb7c
parent004049db3a0abd8c5aeb233f2b3d4069a79ee4d7 (diff)
QmlDesigner.qmlPuppet: avoid debug error messages boxesv2.2.0-beta
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
-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();
}