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
This commit is contained in:
Richard Heck 2012-01-13 03:31:48 +00:00
parent 9283cbdbcb
commit 4026c0dccd

View File

@ -761,8 +761,10 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e)
void GuiWorkArea::focusInEvent(QFocusEvent * e) void GuiWorkArea::focusInEvent(QFocusEvent * e)
{ {
LYXERR(Debug::DEBUG, "GuiWorkArea::focusInEvent(): " << this << endl); 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_->setCurrentWorkArea(this);
d->lyx_view_->currentWorkArea()->bufferView().buffer().updateBuffer();
}
startBlinkingCursor(); startBlinkingCursor();
QAbstractScrollArea::focusInEvent(e); QAbstractScrollArea::focusInEvent(e);