add option cursorHome to eListbox::entryReset
[enigma2.git] / lib / gui / elistbox.cpp
index ccd13ff4f51ad628b69b136971159632be2b8059..013a31036eb618d5835187368666094415be4c1c 100644 (file)
@@ -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;
 {
        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();
 }
        moveSelection(justCheck);
        invalidate();
 }