On Wed, Jun 14, 2006 at 06:54:31PM +0200, Georg Baum wrote:
> Andre Poenitz wrote:
> 
> [qApp crash]
>  
> > this happens within its own event loop.
> > 
> > No good.
> > 
> > [That's btw pretty similar to terminating the event loop by throwing an
> > exception through it - does this sound familiar?]
> > 
> > As I said: Try to terminate the event loop by a less drastic means.
> > Schedule some custom event or whatever, but  ::exit() is not the way.
> 
> You probably know that using ::exit() is not my doing.

Sure. It's proably in there since day 1.

> I considered to change that because of your first comment, but I did
> not because of the following (from lyx_gui.C):
> 
> 
> void exit(int status) { cleanup();
> 
>         // we cannot call QApplication::exit(status) - that could
>         return us // into a static dialog return in the lyx code (for
>         example, // load autosave file QMessageBox. We have to just
>         get the hell // out.

This comment is surely newer. And I don't understand it.
Maybe it refers to calling exit() from a nested event loop.

But I don't think there is a p4roblem worse than what we have now.

> Now I tried (see attached patch), and I could not trigger any static
> dialog to show up.

Good.

Andre'

Reply via email to