]> git.lyx.org Git - features.git/commitdiff
Comment out setQuitOnLastWindowClosed() call.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 27 Feb 2008 11:44:37 +0000 (11:44 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 27 Feb 2008 11:44:37 +0000 (11:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23277 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiApplication.cpp

index 172dfbf2ca66d217b337b29ad06ee8cc398115a4..160bad6a0cb3f5698cfa4bb0da47fb342ba00288 100644 (file)
@@ -139,8 +139,13 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
        QCoreApplication::setOrganizationDomain("lyx.org");
        QCoreApplication::setApplicationName(app_name + "-" + lyx_version);
 
-       // Qt bug? setQuitOnLastWindowClosed(true); does not work
-       setQuitOnLastWindowClosed(false);
+       //FIXME: quitOnLastWindowClosed is true by default, at least on Windows and
+       // X11 platform. We should have a setting for this in order to let the
+       // application to stay resident.
+       /*
+       if (lyxrc.quit_on_last_window_closed)
+               setQuitOnLastWindowClosed(false);
+       */
 
 #ifdef Q_WS_X11
        // doubleClickInterval() is 400 ms on X11 which is just too long.