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
This commit is contained in:
Abdelrazak Younes 2008-03-04 10:43:35 +00:00
parent 4423a8a6f5
commit b45b4a0e87

View 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();