* 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
This commit is contained in:
Jürgen Spitzmüller 2009-08-12 11:03:41 +00:00
parent 52c1d1e712
commit e886b9feb3
2 changed files with 4 additions and 1 deletions

View File

@ -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();

View File

@ -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).