fix remove last timer
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 3 Mar 2006 16:44:20 +0000 (16:44 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 3 Mar 2006 16:44:20 +0000 (16:44 +0000)
lib/python/Screens/TimerEdit.py

index 761b2b4..018e28d 100644 (file)
@@ -104,13 +104,8 @@ 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
                self.refill()
-               list.moveToIndex(currentIndex)
        
        def refill(self):
                self.fillTimerList()