From 5af6333a08bcaa0460e12660a792e5425dbb4634 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Tue, 16 Aug 2005 23:40:28 +0000 Subject: [PATCH] - fix segfault when there was no attached listbox --- lib/gui/elistboxcontent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 94ad0bcb..f969a3bb 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -379,7 +379,8 @@ PyObject *eListboxPythonStringContent::getCurrentSelection() void eListboxPythonStringContent::invalidateEntry(int index) { - m_listbox->entryChanged(index); + if (m_listbox) + m_listbox->entryChanged(index); } ////////////////////////////////////// -- 2.30.2