diff options
Diffstat (limited to 'lib/gui/elistbox.cpp')
| -rw-r--r-- | lib/gui/elistbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index 875ae625..1c797cfa 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -8,8 +8,6 @@ eListbox::eListbox(eWidget *parent) { setContent(new eListboxStringContent()); - setScrollbarMode(showOnDemand); // Default show scrollbar on demand - ePtr<eActionMap> ptr; eActionMap::getInstance(ptr); @@ -151,6 +149,8 @@ void eListbox::moveSelectionTo(int index) void eListbox::updateScrollBar() { + if (!m_scrollbar) + return; int entries = m_content->size(); if ( m_content_changed ) { |
