aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/elistboxcontent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gui/elistboxcontent.cpp')
-rw-r--r--lib/gui/elistboxcontent.cpp6
1 files changed, 5 insertions, 1 deletions
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();
}
//////////////////////////////////////