Comment out setQuitOnLastWindowClosed() call.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23277 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-27 11:44:37 +00:00
parent b39e9e6c8e
commit 1d163f25d9

View File

@ -139,8 +139,13 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
QCoreApplication::setOrganizationDomain("lyx.org"); QCoreApplication::setOrganizationDomain("lyx.org");
QCoreApplication::setApplicationName(app_name + "-" + lyx_version); QCoreApplication::setApplicationName(app_name + "-" + lyx_version);
// Qt bug? setQuitOnLastWindowClosed(true); does not work //FIXME: quitOnLastWindowClosed is true by default, at least on Windows and
setQuitOnLastWindowClosed(false); // 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 #ifdef Q_WS_X11
// doubleClickInterval() is 400 ms on X11 which is just too long. // doubleClickInterval() is 400 ms on X11 which is just too long.