From 1d163f25d98afff46dd5a4e55a2d82def7d5e88e Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 27 Feb 2008 11:44:37 +0000 Subject: [PATCH] Comment out setQuitOnLastWindowClosed() call. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23277 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 172dfbf2ca..160bad6a0c 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -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.