aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-06-11 21:13:36 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-06-11 21:13:36 +0000
commit450a853b5ca1365859e0e0a1f6b8d86034d48ecf (patch)
treee80ee0a25be3fe31e1e00ba25c7da1c532b9eb0c
parentf102cb21d9480254baca61167169459c7cbe05b4 (diff)
downloadenigma2-450a853b5ca1365859e0e0a1f6b8d86034d48ecf.tar.gz
enigma2-450a853b5ca1365859e0e0a1f6b8d86034d48ecf.zip
fix by Anders Holst: ConfigList Screen update when deleting a listitem
-rw-r--r--lib/gui/elistbox.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp
index 6b2eace4..5b05c028 100644
--- a/lib/gui/elistbox.cpp
+++ b/lib/gui/elistbox.cpp
@@ -54,16 +54,10 @@ void eListbox::setWrapAround(bool state)
void eListbox::setContent(iListboxContent *content)
{
- int oldsel = m_selected;
m_content = content;
if (content)
m_content->setListbox(this);
entryReset();
- /* if oldsel != m_selected, selectionChanged was already
- emitted in entryReset. we want it in any case, so otherwise,
- emit it now. */
- if (oldsel == m_selected)
- /* emit */ selectionChanged();
}
bool eListbox::atBegin()
@@ -457,6 +451,7 @@ void eListbox::entryReset(bool selectionHome)
{
m_content_changed = true;
m_prev_scrollbar_page = -1;
+ int oldsel;
if (selectionHome)
{
@@ -473,10 +468,15 @@ void eListbox::entryReset(bool selectionHome)
else
m_selected = 0;
m_content->cursorSet(m_selected);
- selectionChanged();
}
+ oldsel = m_selected;
moveSelection(justCheck);
+ /* if oldsel != m_selected, selectionChanged was already
+ emitted in moveSelection. we want it in any case, so otherwise,
+ emit it now. */
+ if (oldsel == m_selected)
+ /* emit */ selectionChanged();
invalidate();
}