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
This commit is contained in:
Thomas Hartmann
2011-03-24 11:14:21 +01:00
parent 004049db3a
commit 321b3892bc

View File

@@ -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();
}