]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/lyx_gui.C
Fix hang on exit under Windows.
[lyx.git] / src / frontends / qt4 / lyx_gui.C
index 82d1a7c5622eae728a94ef0a66e76c916ed29f19..d3127f6f17b777ccd5c6025e95d6f167679ebb52 100644 (file)
@@ -168,7 +168,12 @@ void parse_init(int & argc, char * argv[])
        // Force adding of font path _before_ QApplication is initialized
        FontLoader::initFontPath();
 
+
+#ifdef Q_WS_WIN
+       static QApplication win_app(argc, argv);
+#else
        app = new LQApplication(argc, argv);
+#endif
 
        // install translation file for Qt built-in dialogs
        // These are only installed since Qt 3.2.x