diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-04-17 15:03:35 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-04-17 15:03:35 +0000 |
| commit | 7e4013c449a7dbb31fb6a67106b913bf22a61334 (patch) | |
| tree | c2d8a9e49a500a415a8bb2355d0003fe2e5a6cf4 /lib/gui/elistboxcontent.cpp | |
| parent | 1b2acec24d480ecf728be7918c6a0eebc859d137 (diff) | |
| download | enigma2-7e4013c449a7dbb31fb6a67106b913bf22a61334.tar.gz enigma2-7e4013c449a7dbb31fb6a67106b913bf22a61334.zip | |
move cursor to valid position when current is invalid (on call invalidate)
Diffstat (limited to 'lib/gui/elistboxcontent.cpp')
| -rw-r--r-- | lib/gui/elistboxcontent.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index afffbbe4..261c548b 100644 --- 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(); + } } ////////////////////////////////////// |
