diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-19 23:58:58 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-19 23:58:58 +0000 |
| commit | ea9231ad7229f47ebf117a3b4894a9e4e7a3c40a (patch) | |
| tree | c1c41afba1d73b43eca5f21421f150bc3b91be0f /lib/gui/elistbox.cpp | |
| parent | 03660c34322e7cdb315bd6ed87cecc68d14214c8 (diff) | |
| download | enigma2-ea9231ad7229f47ebf117a3b4894a9e4e7a3c40a.tar.gz enigma2-ea9231ad7229f47ebf117a3b4894a9e4e7a3c40a.zip | |
update scrollbar in timerlist when a entry is removed
Diffstat (limited to 'lib/gui/elistbox.cpp')
| -rw-r--r-- | lib/gui/elistbox.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index 383ac42d..73fbff3b 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -432,7 +432,10 @@ void eListbox::entryRemoved(int index) if (index == m_selected && m_content) m_selected = m_content->cursorGet(); - moveSelection(justCheck); + if (m_content && m_content->cursorGet() >= m_content->size()) + moveSelection(moveUp); + else + moveSelection(justCheck); if ((m_top <= index) && (index < (m_top + m_items_per_page))) { |
