]> git.lyx.org Git - lyx.git/commitdiff
Fix Windows crash on exit with "static LQApplication"
authorAbdelrazak Younes <younes@lyx.org>
Fri, 9 Jun 2006 09:37:51 +0000 (09:37 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 9 Jun 2006 09:37:51 +0000 (09:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14055 a592a061-630c-0410-9148-cb99ea01b6c8

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