* only autoclose GuiView on last removed tab if the tab mode is not enabled.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23736 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-03-14 23:26:47 +00:00
parent 40144c3f78
commit 5496ff053f
2 changed files with 4 additions and 4 deletions

View File

@ -161,9 +161,9 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
QCoreApplication::setOrganizationDomain("lyx.org");
QCoreApplication::setApplicationName(app_name + "-" + lyx_version);
//FIXME: quitOnLastWindowClosed is true by default, at least on Windows and
// X11 platforms. We should have a lyxrc setting for this in order to let the
// application stay resident.
// FIXME: quitOnLastWindowClosed is true by default. We should have a
// lyxrc setting for this in order to let the application stay resident.
// But then we need some kind of dock icon, at least on Windows.
/*
if (lyxrc.quit_on_last_window_closed)
setQuitOnLastWindowClosed(false);

View File

@ -543,7 +543,7 @@ void GuiView::on_lastWorkAreaRemoved()
#ifdef Q_WS_MAC
// On Mac close the view if there is no Tab open anymore,
// but only if no splitter is visible
if (d.splitter_->count() == 1) {
if (!lyxrc.single_window && d.splitter_->count() == 1) {
TabWorkArea * twa = qobject_cast<TabWorkArea *>(d.splitter_->widget(0));
if (twa && twa->count() == 0) {
// close the view, as no tab is open anymore