Am 08.03.2014 um 22:54 schrieb Benjamin Piwowarski <bpiwo...@lyx.org>:

> I mean why it crashes when not creating a new view before displaying the 
> preferences or about dialogs (even with QT4).

I didn't try that. The rule is simple:
When GuiApplication::getStatus() returns ok (aka. enables the menu)
Then GuiApplication::dispatch() has to do something useful for the given LFUN.

Unfortunately the LFUN_DIALOG_SHOW needs a view to work. Vincent said it would
be good to change that, but nobody did it. Therefor the work around to create
a new view to dispatch the LFUN_DIALOG_SHOW to.

Note: it's only on Mac where this can happen. On Linux and Windows LyX 
terminates
on closing the last view.

Stephan

> 
> 
> Benjamin
> 
> 
> On Sat, Mar 8, 2014 at 9:56 PM, Stephan Witt <st.w...@gmx.net> wrote:
> 
> Am 08.03.2014 um 14:37 schrieb Benjamin Piwowarski <bpiwo...@lyx.org>:
> 
> > > The last .dmg seems to work - only one minor issue: the about and 
> > > preferences menu items are not working (they are enabled, but do nothing) 
> > > when all the windows are closed.
> >
> > Thank you. I've commit this changes now.
> > Sorry, I forgot to mention your work on ticket 8925 solution.
> >
> > The about and preferences menu problem I don't have here on 10.8.6
> >
> > I just built LyX+qt4 from sources with the current master revision, and no 
> > problem - the "bugfix" of opening a new GuiView whenever those actions are 
> > called works.
> 
> Fine, thanks.
> 
> > Any idea why it crashes otherwise?
> 
> I'm not sure I understood.
> 
> You mean why it crashes with Qt5?
> 
> Stephan
> 

Reply via email to