mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
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:
parent
b9e83e76ca
commit
518c8974a6
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user