mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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:
parent
e63f19a97a
commit
cf41e919eb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user