]> git.lyx.org Git - features.git/commitdiff
ButtonController.cpp: fix a bug introduced in r20018: don't enable all widgets in...
authorUwe Stöhr <uwestoehr@web.de>
Thu, 27 Sep 2007 21:03:26 +0000 (21:03 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Thu, 27 Sep 2007 21:03:26 +0000 (21:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20548 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/ButtonController.cpp

index 82379e7749501bff11907283f61828aecbd2cdd1..872ead95b52a65fdafaaaddfb9a89e817349692e 100644 (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;
 }