- minor bugfix (allow empty content)
[vuplus_dvbapp] / lib / gui / elistbox.cpp
index e06ab3e..5a9ee4d 100644 (file)
@@ -10,7 +10,8 @@ void eListbox::setContent(iListboxContent *content)
 {
        m_content = content;
        invalidate();
-       m_content->cursorHome();
+       if (m_content)
+               m_content->cursorHome();
        m_top = 0;
        m_selected = 0;
 }