From 4026c0dccd5608c57dbd2ae061ca743f25abe264 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 13 Jan 2012 03:31:48 +0000 Subject: [PATCH] If we switch via the mouse, we need to update the Buffer after we switch. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40610 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiWorkArea.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index e3bb5260a8..f3b9cc8a7b 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -761,8 +761,10 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e) void GuiWorkArea::focusInEvent(QFocusEvent * e) { LYXERR(Debug::DEBUG, "GuiWorkArea::focusInEvent(): " << this << endl); - if (d->lyx_view_->currentWorkArea() != this) + if (d->lyx_view_->currentWorkArea() != this) { d->lyx_view_->setCurrentWorkArea(this); + d->lyx_view_->currentWorkArea()->bufferView().buffer().updateBuffer(); + } startBlinkingCursor(); QAbstractScrollArea::focusInEvent(e); -- 2.39.2