From b45b4a0e87ef85f932956f133cb9e9e446d2471f Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 4 Mar 2008 10:43:35 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiView.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.39.2