From cf41e919eb35086b1506d71458f435364f2aad1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Thu, 27 Sep 2007 21:03:26 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/ButtonController.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/ButtonController.cpp b/src/frontends/qt4/ButtonController.cpp index 82379e7749..872ead95b5 100644 --- a/src/frontends/qt4/ButtonController.cpp +++ b/src/frontends/qt4/ButtonController.cpp @@ -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; } -- 2.39.2