From: Abdelrazak Younes Date: Tue, 27 May 2008 12:33:06 +0000 (+0000) Subject: Fix crash with multiple windows. X-Git-Tag: 1.6.10~4657 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a2db0e8ed49068353803b290b81fdd5609729d41;p=features.git Fix crash with multiple windows. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24959 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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