Fix crash when closing a buffer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21685 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-11-20 22:23:06 +00:00
parent ba3fa9bd03
commit e615380e42
2 changed files with 4 additions and 2 deletions

View File

@ -1165,6 +1165,10 @@ void GuiView::restartCursor()
*/ */
if (d.current_work_area_) if (d.current_work_area_)
d.current_work_area_->startBlinkingCursor(); d.current_work_area_->startBlinkingCursor();
// Take this occasion to update the toobars and layout list.
updateLayoutList();
updateToolbars();
} }
namespace { namespace {

View File

@ -338,8 +338,6 @@ void GuiWorkArea::processKeySym(KeySymbol const & key, KeyModifier mod)
theLyXFunc().setLyXView(lyx_view_); theLyXFunc().setLyXView(lyx_view_);
theLyXFunc().processKeySym(key, mod); theLyXFunc().processKeySym(key, mod);
lyx_view_->updateLayoutList();
lyx_view_->updateToolbars();
} }