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 committed by Vincent van Ravesteijn
parent 3192696512
commit ce8ec78783

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: {