X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/b682e464035635927e72142065f0332d58ea8fcb..e1ea45e881637c29c87677ef0cb15fcc600cf502:/lib/gui/elistbox.cpp?ds=sidebyside diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index ccd13ff4..013a3103 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -333,14 +333,17 @@ void eListbox::entryChanged(int index) } } -void eListbox::entryReset() +void eListbox::entryReset(bool cursorHome) { m_content_changed=true; m_prev_scrollbar_page=-1; - if (m_content) - m_content->cursorHome(); - m_top = 0; - m_selected = 0; + if ( cursorHome ) + { + if (m_content) + m_content->cursorHome(); + m_top = 0; + m_selected = 0; + } moveSelection(justCheck); invalidate(); }