]> git.lyx.org Git - features.git/commitdiff
Fix crash when closing a buffer.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 20 Nov 2007 22:23:06 +0000 (22:23 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 20 Nov 2007 22:23:06 +0000 (22:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21685 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiWorkArea.cpp

index f312b6c2de4badbd6397e84a296c6f5ab910b13d..6b97f33805b977fdf571a248d870f640af8d304b 100644 (file)
@@ -1165,6 +1165,10 @@ void GuiView::restartCursor()
         */
        if (d.current_work_area_)
                d.current_work_area_->startBlinkingCursor();
+
+       // Take this occasion to update the toobars and layout list.
+       updateLayoutList();
+       updateToolbars();
 }
 
 namespace {
index 200cb2dd5e821130fd1e9187cf95bb14bf6e1688..adecdfdd9f6e2d6ebde0479a6a3e5aac5e7e93c2 100644 (file)
@@ -338,8 +338,6 @@ void GuiWorkArea::processKeySym(KeySymbol const & key, KeyModifier mod)
 
        theLyXFunc().setLyXView(lyx_view_);
        theLyXFunc().processKeySym(key, mod);
-       lyx_view_->updateLayoutList();
-       lyx_view_->updateToolbars();
 }