better fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 12 Dec 2005 21:58:03 +0000 (21:58 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 12 Dec 2005 21:58:03 +0000 (21:58 +0000)
lib/gui/elistbox.cpp

index 1c797cfa24a285ae06325fe46a02b6ea59e832f4..c4f9ed2c2162277e879250421a9ffe0c4320c897 100644 (file)
@@ -4,7 +4,8 @@
 #include <lib/actions/action.h>
 
 eListbox::eListbox(eWidget *parent)
-       :eWidget(parent), m_prev_scrollbar_page(-1), m_content_changed(false), m_scrollbar(NULL)
+       :eWidget(parent), m_prev_scrollbar_page(-1), m_content_changed(false)
+       , m_scrollbar(NULL), m_scrollbar_mode(showNever)
 {
        setContent(new eListboxStringContent());
 
@@ -149,8 +150,6 @@ void eListbox::moveSelectionTo(int index)
 
 void eListbox::updateScrollBar()
 {
-       if (!m_scrollbar)
-               return;
        int entries = m_content->size();
        if ( m_content_changed )
        {