X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/07e04b36083c6946d864b1a0c8b074fab641c5af..db2fbdae678d0f024e4dab8b4b87446f43d3c80b:/lib/python/Screens/TimerEdit.py 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