mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
* disable some invalid insets in description items (covers bug 5937).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29586 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0221a7c390
commit
a7c3fa14fd
@ -1946,8 +1946,11 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
case LFUN_DIALOG_SHOW_NEW_INSET:
|
||||
if (cmd.argument() == "bibitem")
|
||||
code = BIBITEM_CODE;
|
||||
else if (cmd.argument() == "bibtex")
|
||||
else if (cmd.argument() == "bibtex") {
|
||||
code = BIBTEX_CODE;
|
||||
// not allowed in description items
|
||||
enable = !inDescriptionItem(cur);
|
||||
}
|
||||
else if (cmd.argument() == "box")
|
||||
code = BOX_CODE;
|
||||
else if (cmd.argument() == "branch")
|
||||
@ -2018,6 +2021,8 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
break;
|
||||
case LFUN_FLOAT_LIST_INSERT:
|
||||
code = FLOAT_LIST_CODE;
|
||||
// not allowed in description items
|
||||
enable = !inDescriptionItem(cur);
|
||||
break;
|
||||
case LFUN_CAPTION_INSERT:
|
||||
code = CAPTION_CODE;
|
||||
@ -2069,6 +2074,8 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
break;
|
||||
case LFUN_INDEX_PRINT:
|
||||
code = INDEX_PRINT_CODE;
|
||||
// not allowed in description items
|
||||
enable = !inDescriptionItem(cur);
|
||||
break;
|
||||
case LFUN_NOMENCL_INSERT:
|
||||
if (cur.selIsMultiCell() || cur.selIsMultiLine()) {
|
||||
@ -2079,9 +2086,13 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
break;
|
||||
case LFUN_NOMENCL_PRINT:
|
||||
code = NOMENCL_PRINT_CODE;
|
||||
// not allowed in description items
|
||||
enable = !inDescriptionItem(cur);
|
||||
break;
|
||||
case LFUN_TOC_INSERT:
|
||||
code = TOC_CODE;
|
||||
// not allowed in description items
|
||||
enable = !inDescriptionItem(cur);
|
||||
break;
|
||||
case LFUN_HYPERLINK_INSERT:
|
||||
if (cur.selIsMultiCell() || cur.selIsMultiLine()) {
|
||||
|
@ -187,7 +187,10 @@ What's new
|
||||
- Fix crash when passing a nonexisting file to the lyx function
|
||||
server-goto-file-row.
|
||||
|
||||
- Fix crash when creating new file - Qt 4.5 issue (bug 5887).
|
||||
- Fix crash when creating new file -- Qt 4.5 issue (bug 5887).
|
||||
|
||||
- Improve responsiveness, especially on slow or networked drives, when
|
||||
editing a master with child documents (bug 5705).
|
||||
|
||||
- After reloading a child document, correctly re-assign the master
|
||||
(bug 5873).
|
||||
@ -303,8 +306,7 @@ What's new
|
||||
- Fix bug causing reverse DVI search to fail when the temporary directory
|
||||
is a symbolic link.
|
||||
|
||||
- Improve responsiveness, especially on slow or networked drives, when
|
||||
editing a master with child documents (bug 5705).
|
||||
- Disable some invalid insets inside description items (bug 5937).
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
Loading…
x
Reference in New Issue
Block a user