bug 4652: better fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24781 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-05-15 08:06:32 +00:00
parent 5b4edfeb2c
commit ed4ea2cb97

View File

@ -87,7 +87,10 @@ void GuiDialog::changed()
void GuiDialog::enableView(bool enable)
{
bc().setReadOnly(!enable);
if (!enable) {
bc().setReadOnly(true);
bc().setValid(false);
}
Dialog::enableView(enable);
}