diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-13 15:27:32 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-13 15:27:32 +0000 |
| commit | 83dc65144ec5b7d412f959afd2abb947580f7121 (patch) | |
| tree | bbff84f2cb7df7924f6e5f37980e76c547ec1a6d /lib/gui/elistbox.cpp | |
| parent | d545fceb99fa32b01ee131cf7867eb5e21702edb (diff) | |
| download | enigma2-83dc65144ec5b7d412f959afd2abb947580f7121.tar.gz enigma2-83dc65144ec5b7d412f959afd2abb947580f7121.zip | |
add option cursorHome to eListbox::entryReset
Diffstat (limited to 'lib/gui/elistbox.cpp')
| -rw-r--r-- | lib/gui/elistbox.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
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(); } |
