forked from qt-creator/qt-creator
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:
@@ -42,6 +42,10 @@
|
|||||||
#include <qtsystemexceptionhandler.h>
|
#include <qtsystemexceptionhandler.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication application(argc, argv);
|
QApplication application(argc, argv);
|
||||||
@@ -60,5 +64,9 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
new QmlDesigner::NodeInstanceClientProxy(&application);
|
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();
|
return application.exec();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user