]> git.lyx.org Git - features.git/commitdiff
* GuiView.cpp: disable character and symbols dialog in read-only mode.
authorJürgen Spitzmüller <spitz@lyx.org>
Wed, 12 Aug 2009 11:02:02 +0000 (11:02 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Wed, 12 Aug 2009 11:02:02 +0000 (11:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30986 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index ead525ec5fcbaa50c88cb8bd0ca591609fe35061..5e767b8c92601c8e769f1523d0e6514e465d496a 100644 (file)
@@ -1306,7 +1306,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
                        enable = buf->isExportable("dvi")
                                && lyxrc.print_command != "none";
                else if (name == "character" || name == "symbols") {
-                       if (!view() || !view()->cursor().inTexted())
+                       if (buf->isReadonly() || !view() || !view()->cursor().inTexted())
                                enable = false;
                        else {
                                // FIXME we should consider passthru