mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
* GuiToolbar.cpp (updateContents):
- properly disable layout combo (bug 5054) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25677 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
180121ed53
commit
eb0e3ff7b1
@ -635,7 +635,8 @@ void GuiLayoutBox::updateContents(bool reset)
|
||||
// needed to recalculate size hint
|
||||
hide();
|
||||
setMinimumWidth(sizeHint().width());
|
||||
setEnabled(!buffer->isReadonly());
|
||||
setEnabled(!buffer->isReadonly() &&
|
||||
lyx::getStatus(FuncRequest(LFUN_LAYOUT)).enabled());
|
||||
show();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user