From a2db0e8ed49068353803b290b81fdd5609729d41 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 27 May 2008 12:33:06 +0000 Subject: [PATCH] Fix crash with multiple windows. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24959 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 44bd269fff..7e6d52cd58 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -440,6 +440,8 @@ TocModels & GuiView::tocModels() void GuiView::setFocus() { + // Make sure LyXFunc points to the correct view. + theLyXFunc().setLyXView(this); if (d.current_work_area_) d.current_work_area_->setFocus(); else