]> git.lyx.org Git - features.git/commitdiff
GuiView: Avoid unnecessary GUI updates if it was the current view already.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 4 Mar 2008 10:43:35 +0000 (10:43 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 4 Mar 2008 10:43:35 +0000 (10:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23431 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index f1c4bd3c1ab89a1f91a0f87eb1333c8f4a20d23e..1e5f227081048d231d53cf6f95e451a6afb64a8c 100644 (file)
@@ -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();