Patch from Enrico:

Avoids the crash when quitting LyX on Cygwin/qt4


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14860 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-09-01 13:49:03 +00:00
parent 02f51e1820
commit b486b53f8f
2 changed files with 5 additions and 1 deletions

View File

@ -118,6 +118,10 @@ AC_DEFUN([QT4_DO_IT_ALL],
QT4_CPPFLAGS="-DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS"
case ${host} in
*mingw*) QT4_CPPFLAGS="-DQT_DLL $QT4_CPPFLAGS";;
*cygwin*)
if test "x$with_x" = xno ; then
QT4_CPPFLAGS="$QT4_CPPFLAGS -DQ_CYGWIN_WIN"
fi;;
esac
AC_SUBST(QT4_CPPFLAGS)

View File

@ -129,7 +129,7 @@ int exec(int & argc, char * argv[])
// Force adding of font path _before_ QApplication is initialized
FontLoader::initFontPath();
#ifdef Q_WS_WIN
#if defined(Q_WS_WIN) && !defined(Q_CYGWIN_WIN)
static Application app(argc, argv);
#else
Application app(argc, argv);