From a9390a6b8d4ba51b516542ba6acee5414ce2010d Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 9 Jun 2006 09:37:51 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/lyx_gui.C | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.2