From e886b9feb38bdb1b560a4fb1f69a1fbb6875fa63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Wed, 12 Aug 2009 11:03:41 +0000 Subject: [PATCH] * GuiView.cpp: disable symbols dialog in read-only mode. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30987 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 2 +- status.16x | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index aa58a834f9..8d0c75e6dd 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1210,7 +1210,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag) } } else if (name == "symbols") { - if (!view() || view()->cursor().inMathed()) + if (buf->isReadonly() || !view() || view()->cursor().inMathed()) enable = false; else { InsetCode ic = view()->cursor().inset().lyxCode(); diff --git a/status.16x b/status.16x index 1a63ea1677..cf98e6651e 100644 --- a/status.16x +++ b/status.16x @@ -202,6 +202,9 @@ What's new (e.g. ".lyx15"). This avoids a crash when loading two files with identical names but different extensions (bug 5646), and disambiguates such files in the user interface. + +- Disable Symbols dialog for read-only dialog. This prevents a potential + crash. - Fall back to default UI file if the specified one cannot be found (bug 6076).