]> git.lyx.org Git - features.git/commitdiff
* GuiView: Make use of the default settings WRT last window closed and app quiting.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 27 Feb 2008 11:35:12 +0000 (11:35 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 27 Feb 2008 11:35:12 +0000 (11:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23276 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index fdc80a08384a2d204bd37b6ef1efa4ce805c5e43..a53ebfbf3759f90ae30c091512fa239b295e1a0f 100644 (file)
@@ -290,9 +290,9 @@ GuiView::GuiView(int id)
        connect(&d.statusbar_timer_, SIGNAL(timeout()),
                this, SLOT(clearMessage()));
 
-       // Qt bug? signal lastWindowClosed does not work
+       // We don't want to keep the window in memory if it is closed.
        setAttribute(Qt::WA_QuitOnClose, false);
-       setAttribute(Qt::WA_DeleteOnClose, true);
+
 #ifndef Q_WS_MACX
        // assign an icon to main form. We do not do it under Qt/Mac,
        // since the icon is provided in the application bundle.