aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-25 13:53:42 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-25 13:53:42 +0000
commit266d4a5e9cdc02e8fd54481c2101078b5d62a93a (patch)
tree557903e7b75715052b08f3774c84da8364aa407b /lib/python
parentce84b26df8249165025a3798f1ff2b80bf979a55 (diff)
downloadenigma2-266d4a5e9cdc02e8fd54481c2101078b5d62a93a.tar.gz
enigma2-266d4a5e9cdc02e8fd54481c2101078b5d62a93a.zip
delete correct entry in timerlist
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()