On Sun, Aug 27, 2006 at 02:56:17PM +0200, Georg Baum wrote:

> Am Sonntag, 27. August 2006 06:08 schrieb Enrico Forestieri:
> > The attached patch avoids the crash when quitting LyX.
> > 
> > -- 
> > Enrico
> > nostatic.diff
> >   Index: src/frontends/qt4/lyx_gui.C
> > ===================================================================
> > --- src/frontends/qt4/lyx_gui.C (revision 14845)
> > +++ src/frontends/qt4/lyx_gui.C (working copy)
> > @@ -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);
> 
> Why Q_CYGWIN_WIN? Can't you use something predefined? Instead of extending 
> this hack it would be great if somebody could find out what really goes 
> wrong here.

Q_CYGWIN_WIN was introduced in qt3win to distinguish between native
Win32 and X11 GUI builds on cygwin. I simply carried that over for
compatibility. Notice that Q_CYGWIN_WIN is also added to the QT defines
when using the Qt3 frontend. I may very well use Q_OS_CYGWIN (which is
already predefined by Qt4) for that purpose here, but then I need that
Q_CYGWIN_WIN is defined to avoid an X11 build. So, please guys can you
add that small, harmless bit to qt4.m4? Otherwise, I have always to
patch by myself qt4.m4 before running autogen.sh. It is not a big deal,
but makes my life a little easier. Thank you.

AS regards what is going wrong there, I really don't know, but it seems
that cygwin does a pretty good job at emulating linux ;-)

-- 
Enrico

Reply via email to