From 5318d2fa7d44315502b5d5a8de63f8b17a6f3ecc Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 4 Nov 2013 22:07:44 +0100 Subject: [PATCH] Fix crash when using context menu in empty outliner Fixes: #8885 --- src/frontends/qt4/TocWidget.cpp | 2 +- status.20x | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/TocWidget.cpp b/src/frontends/qt4/TocWidget.cpp index 80c9db97d9..bfdc9f06ca 100644 --- a/src/frontends/qt4/TocWidget.cpp +++ b/src/frontends/qt4/TocWidget.cpp @@ -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: { diff --git a/status.20x b/status.20x index c15980ca14..efb796e831 100644 --- a/status.20x +++ b/status.20x @@ -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). -- 2.39.5