]> git.lyx.org Git - features.git/commitdiff
Fix crash with multiple windows.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 27 May 2008 12:33:06 +0000 (12:33 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 27 May 2008 12:33:06 +0000 (12:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24959 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 44bd269fffa71bab6a000efec4b05477967f701a..7e6d52cd580ff8c0c35243635400b5acc147c8fb 100644 (file)
@@ -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