mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
* 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:
parent
fa2a87de9b
commit
07864bd9f8
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user