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);
#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