From: Abdelrazak Younes Date: Tue, 4 Mar 2008 10:43:35 +0000 (+0000) Subject: GuiView: Avoid unnecessary GUI updates if it was the current view already. X-Git-Tag: 1.6.10~5910 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b45b4a0e87ef85f932956f133cb9e9e446d2471f;p=features.git GuiView: Avoid unnecessary GUI updates if it was the current view already. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23431 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index f1c4bd3c1a..1e5f227081 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -570,6 +570,10 @@ bool GuiView::event(QEvent * e) // break; case QEvent::WindowActivate: { + if (this == guiApp->currentView()) { + setFocus(); + return QMainWindow::event(e); + } guiApp->setCurrentView(*this); if (d.current_work_area_) { BufferView & bv = d.current_work_area_->bufferView();