ButtonController.cpp: fix a bug introduced in r20018: don't enable all widgets in the dialog, see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg128222.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20548 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2007-09-27 21:03:26 +00:00
parent e63f19a97a
commit cf41e919eb

View File

@ -85,7 +85,10 @@ bool ButtonController::setReadOnly(bool ro)
policy_.input(ro ?
ButtonPolicy::SMI_READ_ONLY : ButtonPolicy::SMI_READ_WRITE);
refreshReadOnly();
// refreshReadOnly(); This will enable all widgets in dialogs, no matter if
// they allowed to be enabled, so when you plan to
// reenable this call, read this before:
// http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg128222.html
refresh();
return ro;
}