* GuiView: Make use of the default settings WRT last window closed and app quiting.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23276 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-27 11:35:12 +00:00
parent 7ca1eacac1
commit b39e9e6c8e

View File

@ -290,9 +290,9 @@ GuiView::GuiView(int id)
connect(&d.statusbar_timer_, SIGNAL(timeout()), connect(&d.statusbar_timer_, SIGNAL(timeout()),
this, SLOT(clearMessage())); 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_QuitOnClose, false);
setAttribute(Qt::WA_DeleteOnClose, true);
#ifndef Q_WS_MACX #ifndef Q_WS_MACX
// assign an icon to main form. We do not do it under Qt/Mac, // assign an icon to main form. We do not do it under Qt/Mac,
// since the icon is provided in the application bundle. // since the icon is provided in the application bundle.