Fix crash with multiple windows.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24959 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-05-27 12:33:06 +00:00
parent cd1cc0b647
commit a2db0e8ed4

View File

@ -440,6 +440,8 @@ TocModels & GuiView::tocModels()
void GuiView::setFocus() void GuiView::setFocus()
{ {
// Make sure LyXFunc points to the correct view.
theLyXFunc().setLyXView(this);
if (d.current_work_area_) if (d.current_work_area_)
d.current_work_area_->setFocus(); d.current_work_area_->setFocus();
else else