* 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:
Jürgen Spitzmüller 2008-07-16 21:35:13 +00:00
parent 180121ed53
commit eb0e3ff7b1

View File

@ -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();
}