From af65678805cc6403be310606b8dcddc28fc1f046 Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Sat, 8 Oct 2005 00:02:54 +0000 Subject: [PATCH] -setList() calls invalidate -make invalidate in invalidate() --- lib/gui/elistboxcontent.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 63d94b09..35618786 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -365,6 +365,10 @@ void eListboxPythonStringContent::setList(PyObject *list) m_list = list; Py_INCREF(m_list); } + + //always invalidate when we get a new list + if (m_listbox) + m_listbox->invalidate(); } PyObject *eListboxPythonStringContent::getCurrentSelection() @@ -387,7 +391,7 @@ void eListboxPythonStringContent::invalidateEntry(int index) void eListboxPythonStringContent::invalidate() { if (m_listbox) - m_listbox->entryReset(); + m_listbox->invalidate(); } ////////////////////////////////////// -- 2.30.2