* src/frontends/LyXView.C (setBuffer): update the list of layouts

before setting the current layout.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14830 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2006-08-24 09:46:29 +00:00
parent fa2a87de9b
commit 07864bd9f8

View File

@ -139,6 +139,8 @@ void LyXView::setBuffer(Buffer * b)
work_area_->bufferView().setBuffer(b);
updateLayoutChoice();
if (work_area_->bufferView().buffer()) {
// Buffer-dependent dialogs should be updated or
// hidden. This should go here because some dialogs (eg ToC)
@ -150,7 +152,6 @@ void LyXView::setBuffer(Buffer * b)
updateMenubar();
updateToolbars();
updateLayoutChoice();
updateWindowTitle();
redrawWorkArea();
}