commit 1c1c83eced9686949019f47c6bbde3bfe63c0b10
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Tue Oct 12 07:42:21 2021 +0200

    Prevent null pointer
    
    No status entry needed (this bug crept in after the last release)
---
 src/frontends/qt4/GuiPrefs.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp
index 5e91c62..e9bdbaf 100644
--- a/src/frontends/qt4/GuiPrefs.cpp
+++ b/src/frontends/qt4/GuiPrefs.cpp
@@ -3340,7 +3340,8 @@ void PrefShortcuts::on_searchLE_textEdited()
        for (int i = 0; i < matched.size(); ++i)
                if (!isAlwaysHidden(*matched[i])) {
                        matched[i]->setHidden(false);
-                       matched[i]->parent()->setExpanded(true);
+                       if (matched[i]->parent())
+                               matched[i]->parent()->setExpanded(true);
                }
 }
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to