Am Montag, dem 11.10.2021 um 17:55 +0200 schrieb Pavel Sanda:
> Bisect suggests the following commit:
> 
> commit da0d01cc107d112d8b640dce92bfa6e943c1569c
> Author: Juergen Spitzmueller <sp...@lyx.org>
> Date:   Sat Mar 13 11:29:54 2021 +0100
> 
>     Backport deprecation fix

Attached patch fixes it.

OK to commit, Riki?

Jürgen

diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp
index 5e91c62fe6..e9bdbaf522 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);
 		}
 }
 

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to