mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
One view/doc: more fixes and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25329 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2ab92aba67
commit
efd6dc8a0c
@ -682,23 +682,26 @@ void GuiView::on_lastWorkAreaRemoved()
|
|||||||
// We have a splitter so don't close anything.
|
// We have a splitter so don't close anything.
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (lyxrc.open_buffers_in_tabs) {
|
// Reset and updates the dialogs.
|
||||||
d.toc_models_.reset(0);
|
d.toc_models_.reset(0);
|
||||||
// The document settings needs to be reinitialised.
|
updateDialog("document", "");
|
||||||
updateDialog("document", "");
|
updateDialogs();
|
||||||
updateDialogs();
|
|
||||||
|
if (lyxrc.open_buffers_in_tabs)
|
||||||
|
// Nothing more to do, the window should stay open.
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (guiApp->viewIds().size() > 1) {
|
||||||
|
close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guiApp->viewIds().size() == 1) {
|
#ifdef Q_WS_MACX
|
||||||
#ifndef Q_WS_MACX
|
// On Mac we also close the last window because the application stay
|
||||||
// On Mac close the view in any case because the application stay
|
// resident in memory. On other platforms we don't close the last
|
||||||
// resident in memory. On other platforms we don't close the last
|
// window because this would quit the application.
|
||||||
// window because this would quit the application.
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
close();
|
close();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user