aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/TimerEdit.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Screens/TimerEdit.py b/lib/python/Screens/TimerEdit.py
index 36502ca0..ee2920a0 100644
--- a/lib/python/Screens/TimerEdit.py
+++ b/lib/python/Screens/TimerEdit.py
@@ -99,13 +99,14 @@ class TimerEditList(Screen):
def removeTimer(self):
list = self["timerlist"]
+ timer = list.getCurrent()[0]
currentIndex = list.getCurrentIndex()
+ self.session.nav.RecordTimer.removeEntry(timer)
list.moveDown()
if list.getCurrentIndex() == currentIndex:
currentIndex -= 1
- list.moveToIndex(currentIndex)
- self.session.nav.RecordTimer.removeEntry(list.getCurrent()[0])
self.refill()
+ list.moveToIndex(currentIndex)
def refill(self):
self.fillTimerList()