git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
save playlist on leaving the media player (currently saved with line by line service...
[enigma2.git]
/
lib
/
gui
/
elistboxcontent.cpp
diff --git
a/lib/gui/elistboxcontent.cpp
b/lib/gui/elistboxcontent.cpp
index afffbbe438a97c90b78015b79a31e6142fbb1ab9..261c548bb5ffc0511bc3e9eb85c198286d96ce08 100644
(file)
--- a/
lib/gui/elistboxcontent.cpp
+++ b/
lib/gui/elistboxcontent.cpp
@@
-214,7
+214,12
@@
void eListboxPythonStringContent::invalidateEntry(int index)
void eListboxPythonStringContent::invalidate()
{
if (m_listbox)
+ {
+ int s = size();
+ if ( m_cursor >= s )
+ m_listbox->moveSelectionTo(s?s-1:0);
m_listbox->invalidate();
+ }
}
//////////////////////////////////////