]> git.lyx.org Git - features.git/commitdiff
bug 4652: better fix.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 15 May 2008 08:06:32 +0000 (08:06 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 15 May 2008 08:06:32 +0000 (08:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24781 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDialog.cpp

index 7b08bef7b49420f45580fdc3384c654e63743504..f7271ad2bdcd5edaddd51f1a7fe9e858e6fc965b 100644 (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);
 }