mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
9283cbdbcb
commit
4026c0dccd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user