From: Abdelrazak Younes Date: Fri, 9 Jun 2006 09:37:51 +0000 (+0000) Subject: Fix Windows crash on exit with "static LQApplication" X-Git-Tag: 1.6.10~13135 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a9390a6b8d4ba51b516542ba6acee5414ce2010d;p=lyx.git Fix Windows crash on exit with "static LQApplication" git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14055 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/lyx_gui.C b/src/frontends/qt4/lyx_gui.C index e06678826f..e2ec4c306e 100644 --- a/src/frontends/qt4/lyx_gui.C +++ b/src/frontends/qt4/lyx_gui.C @@ -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