Add error message when using a Qt compiled with QT_NO_SESSIONMANAGER defined. The error message that QSessionManager is incomplete is not very useful to find out the problem.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36388 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-11-18 22:14:49 +00:00
parent b9e83e76ca
commit 518c8974a6

View File

@ -2268,8 +2268,14 @@ void GuiApplication::commitData(QSessionManager & sm)
/// 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
#error Qt is compiled without session manager
(void) sm;
#else
if (sm.allowsInteraction() && !closeAllViews())
sm.cancel();
#endif
}