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
This commit is contained in:
Abdelrazak Younes 2006-06-09 09:37:51 +00:00
parent f8c24b0293
commit a9390a6b8d

View 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