we rely on Windows and maybe Linux on a Qt bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15974 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2006-11-19 12:23:36 +00:00
parent d32701179e
commit b817032684

View File

@ -152,7 +152,15 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
LoaderQueue::setPriority(10,100);
setQuitOnLastWindowClosed(false);
/* Qt Docs:
void QApplication::lastWindowClosed () [signal]
This signal is emitted from QApplication::exec() when the last visible
primary window ... is closed.
This feature be turned off by setting quitOnLastWindowClosed to false.
*/
//setQuitOnLastWindowClosed(false);
// this connect should not be necessary:
// we rely on a Qt bug on Windows and maybe Linux
QObject::connect(this, SIGNAL(lastWindowClosed()),
this, SLOT(quitLyX()));