Let LyX compile when there is no session manager.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36399 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-11-20 01:43:18 +00:00
parent ff79d11bb7
commit bc05bc2c59

View File

@ -2268,9 +2268,8 @@ void GuiApplication::commitData(QSessionManager & sm)
/// interaction. /// interaction.
/// We are changing that to close all wiew one by one. /// We are changing that to close all wiew one by one.
/// FIXME: verify if the default implementation is enough now. /// FIXME: verify if the default implementation is enough now.
#ifdef QT_NO_SESSIONMANAGER #ifdef QT_NO_SESSIONMANAGER
#error Qt is compiled without session manager #warning Qt is compiled without session manager
(void) sm; (void) sm;
#else #else
if (sm.allowsInteraction() && !closeAllViews()) if (sm.allowsInteraction() && !closeAllViews())