aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-11-19 23:58:58 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-11-19 23:58:58 +0000
commitea9231ad7229f47ebf117a3b4894a9e4e7a3c40a (patch)
treec1c41afba1d73b43eca5f21421f150bc3b91be0f /lib/python/Screens
parent03660c34322e7cdb315bd6ed87cecc68d14214c8 (diff)
downloadenigma2-ea9231ad7229f47ebf117a3b4894a9e4e7a3c40a.tar.gz
enigma2-ea9231ad7229f47ebf117a3b4894a9e4e7a3c40a.zip
update scrollbar in timerlist when a entry is removed
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/TimerEdit.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/python/Screens/TimerEdit.py b/lib/python/Screens/TimerEdit.py
index 8d8d9ac1..5a7109f2 100644
--- a/lib/python/Screens/TimerEdit.py
+++ b/lib/python/Screens/TimerEdit.py
@@ -148,8 +148,15 @@ class TimerEditList(Screen):
self.refill()
def refill(self):
+ oldsize = len(self.list)
self.fillTimerList()
- self["timerlist"].invalidate()
+ lst = self["timerlist"]
+ newsize = len(self.list)
+ if oldsize and oldsize != newsize:
+ idx = lst.getCurrentIndex()
+ lst.entryRemoved(idx)
+ else:
+ lst.invalidate()
def addCurrentTimer(self):
event = None