From: Felix Domke Date: Tue, 16 Aug 2005 23:40:28 +0000 (+0000) Subject: - fix segfault when there was no attached listbox X-Git-Tag: 2.6.0~5735 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/5af6333a08bcaa0460e12660a792e5425dbb4634?ds=sidebyside - fix segfault when there was no attached listbox --- 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); } //////////////////////////////////////