# HG changeset patch
# User unc0rr
# Date 1387041380 -14400
# Node ID 7d0329f371815e77bf4f416066d437cad19bd700
# Parent  9315727c0f1defdb9ce0c8512eefa8a035fa4f43
To prevent that weird crash, you need to initialize SDL before Qt

diff -r 9315727c0f1d -r 7d0329f37181 QTfrontend/main.cpp
--- a/QTfrontend/main.cpp	Fri Dec 06 00:56:56 2013 +0100
+++ b/QTfrontend/main.cpp	Sat Dec 14 21:16:20 2013 +0400
@@ -37,6 +37,8 @@
 #include "FileEngine.h"
 #include "MessageDialog.h"
 
+#include "SDLInteraction.h"
+
 #ifdef _WIN32
 #include <Shlobj.h>
 #elif defined __APPLE__
@@ -132,6 +134,8 @@
     cocoaInit = new CocoaInitializer(); // Creates the autoreleasepool preventing cocoa object leaks on OS X.
 #endif
 
+    SDLInteraction::instance();
+
     HWApplication app(argc, argv);
 
     QLabel *splash = NULL;