Fix crash when using context menu in empty outliner

Fixes: #8885
This commit is contained in:
Juergen Spitzmueller 2013-11-04 22:07:44 +01:00
parent 596b9f8607
commit 5318d2fa7d
2 changed files with 4 additions and 1 deletions

View File

@ -152,7 +152,7 @@ bool TocWidget::getStatus(Cursor & cur, FuncRequest const & cmd,
case LFUN_OUTLINE_IN:
case LFUN_OUTLINE_OUT:
case LFUN_SECTION_SELECT:
status.setEnabled(true);
status.setEnabled(item.dit() != 0);
return true;
case LFUN_LABEL_COPY_AS_REF: {

View File

@ -87,6 +87,9 @@ What's new
- Fix crash when changing alignment of several cells in tabular (bug 8859).
- Disable invalid actions in empty outliner that could trigger a crash
(bug 8885).
- Fix bug where searching for next change may leave an empty paragraph
where cursor was (bug 3199).