mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
4423a8a6f5
commit
b45b4a0e87
@ -570,6 +570,10 @@ bool GuiView::event(QEvent * e)
|
|||||||
// break;
|
// break;
|
||||||
|
|
||||||
case QEvent::WindowActivate: {
|
case QEvent::WindowActivate: {
|
||||||
|
if (this == guiApp->currentView()) {
|
||||||
|
setFocus();
|
||||||
|
return QMainWindow::event(e);
|
||||||
|
}
|
||||||
guiApp->setCurrentView(*this);
|
guiApp->setCurrentView(*this);
|
||||||
if (d.current_work_area_) {
|
if (d.current_work_area_) {
|
||||||
BufferView & bv = d.current_work_area_->bufferView();
|
BufferView & bv = d.current_work_area_->bufferView();
|
||||||
|
Loading…
Reference in New Issue
Block a user