From ed4ea2cb974bf1704befbb7dcc4576ad1c7ec3d9 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 15 May 2008 08:06:32 +0000 Subject: [PATCH] bug 4652: better fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24781 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiDialog.cpp b/src/frontends/qt4/GuiDialog.cpp index 7b08bef7b4..f7271ad2bd 100644 --- a/src/frontends/qt4/GuiDialog.cpp +++ b/src/frontends/qt4/GuiDialog.cpp @@ -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); }