summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index 2e809d0f..e452b781 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -161,9 +161,19 @@ main(int argc, char** argv)
qDebug() << "exit: main()";
+ // msvc crashes again in some destructor
+#if defined(_MSC_VER)
+ qDebug() << "exit: terminating";
+ TerminateProcess(GetCurrentProcess(), 0);
+#endif
+
return 0;
}
+#if defined(Q_CREATOR_RUN)
+# pragma clang diagnostic ignored "-Wmain"
+#endif
+
#ifdef _MSC_VER
int WINAPI
WinMain (struct HINSTANCE__ *hInstance,