]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/lyx_gui.C
Fix Windows crash on exit with "static LQApplication"
[lyx.git] / src / frontends / qt4 / lyx_gui.C
index e06678826fd86da032b29f415fe5fa9368d77740..e2ec4c306ed909185022c315289a57d2fac204ce 100644 (file)
@@ -167,7 +167,11 @@ void exec(int & argc, char * argv[])
        // Force adding of font path _before_ QApplication is initialized
        FontLoader::initFontPath();
 
+#ifdef Q_WS_WIN
+       static LQApplication app(argc, argv);
+#else
        LQApplication app(argc, argv);
+#endif
 
        // install translation file for Qt built-in dialogs
        // These are only installed since Qt 3.2.x