]> git.lyx.org Git - lyx.git/commitdiff
Add error message when using a Qt compiled with QT_NO_SESSIONMANAGER defined. The...
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 18 Nov 2010 22:14:49 +0000 (22:14 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 18 Nov 2010 22:14:49 +0000 (22:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36388 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiApplication.cpp

index 358386456b100682c540f5ec06c48b42738f96ed..1f001a55fd7ec819c7470f6c3df1ebef6f052bcd 100644 (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.
-       if (sm.allowsInteraction() && !closeAllViews())
-               sm.cancel();
+
+       #ifdef QT_NO_SESSIONMANAGER
+               #error Qt is compiled without session manager
+               (void) sm;
+       #else
+               if (sm.allowsInteraction() && !closeAllViews())
+                       sm.cancel();
+       #endif
 }