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 761b2b489cb34f400816ba66e134f2c40d8f336f..018e28dc09d6815acc7bc4408e38b9098714e236 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()