]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiApplication.cpp
Replace #warning by something that is understood by MSVC
[features.git] / src / frontends / qt4 / GuiApplication.cpp
index 0f6c38fb834855977335bdddd1772445598158d1..e4a4797f61a4112cec662ea1de7675b1646d7152 100644 (file)
@@ -2292,7 +2292,11 @@ void GuiApplication::commitData(QSessionManager & sm)
        /// We are changing that to close all wiew one by one.
        /// FIXME: verify if the default implementation is enough now.
        #ifdef QT_NO_SESSIONMANAGER
-               #warning Qt is compiled without session manager
+               #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())