commit 5318d2fa7d44315502b5d5a8de63f8b17a6f3ecc
Author: Juergen Spitzmueller <[email protected]>
Date:   Mon Nov 4 22:07:44 2013 +0100

    Fix crash when using context menu in empty outliner
    
    Fixes: #8885

diff --git a/src/frontends/qt4/TocWidget.cpp b/src/frontends/qt4/TocWidget.cpp
index 80c9db9..bfdc9f0 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 c15980c..efb796e 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).
 

Reply via email to