http://qt-project.org/forums/viewthread/47632/#195137
Apparently, LyX is not implementing the session management as the Qt team suggest. I've downloaded LyX's source code, and in src/frontends/qt4/GuiApplication.cpp I found the following lines (2588-2608) :
Code: Select all
void GuiApplication::commitData(QSessionManager & sm)
{
/// The implementation is required to avoid an application exit
/// when session state save is triggered by session manager.
/// The default implementation sends a close event to all
/// visible top level widgets when session managment allows
/// interaction.
/// We are changing that to close all wiew one by one.
/// FIXME: verify if the default implementation is enough now.
#ifdef QT_NO_SESSIONMANAGER
#ifndef _MSC_VER
#warning Qt is compiled without session manager
#else
#pragma message("warning: Qt is compiled without session manager")
#endif
(void) sm;
#else
if (sm.allowsInteraction() && !closeAllViews())
sm.cancel();
#endif
}
If this reasoning sounds correct, then I'll try to draw the attention of the LyX developers to this problem. If someone else feels like doing this, or if a LyX developers reads this, please feel free to do whatever you think is right

To be continued (work is waiting ...)