From 2590d97005eecab111a4bf8476da9eb1c700654c Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sat, 29 Jan 2005 04:36:01 +0000 Subject: - minor bugfix (allow empty content) - allow tuples as list elements - fake main menu --- lib/gui/elistbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/gui/elistbox.cpp') diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index e06ab3e6..5a9ee4d6 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -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; } -- cgit v1.2.3