mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
* When clicking the close button on a background window, it can be that the window does
not get the current view when the closeEvent arrives. So better make sure it is the current explicitly. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23734 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cc4955b4a2
commit
83661da26a
@ -366,6 +366,10 @@ void GuiView::showEvent(QShowEvent * e)
|
|||||||
|
|
||||||
void GuiView::closeEvent(QCloseEvent * close_event)
|
void GuiView::closeEvent(QCloseEvent * close_event)
|
||||||
{
|
{
|
||||||
|
// it can happen that this event arrives without selecting the view,
|
||||||
|
// e.g. when clicking the close button on a background window.
|
||||||
|
theLyXFunc().setLyXView(this);
|
||||||
|
|
||||||
while (Buffer * b = buffer()) {
|
while (Buffer * b = buffer()) {
|
||||||
if (b->parent()) {
|
if (b->parent()) {
|
||||||
// This is a child document, just close the tab after saving
|
// This is a child document, just close the tab after saving
|
||||||
|
Loading…
Reference in New Issue
Block a user