config rewrite. some extensions still need to be updated.
[enigma2.git] / lib / python / Screens / TimerEdit.py
index ece9dc4ca12cbee4b788f1fa48b7a67c6714656d..ed11874e6a0999d32fbfd34f6b43702d42de6787 100644 (file)
@@ -1,16 +1,14 @@
 from Screen import Screen
 from Components.TimerList import TimerList, TimerEntryComponent
-from Components.ConfigList import ConfigList
 from Components.MenuList import MenuList
 from Components.ActionMap import ActionMap
 from Components.Label import Label
 from Components.Button import Button
 from Screens.MessageBox import MessageBox
 from TimerEntry import TimerEntry, TimerLog
-from RecordTimer import RecordTimerEntry, parseEvent
+from RecordTimer import RecordTimerEntry, parseEvent, AFTEREVENT
 from time import *
 from ServiceReference import ServiceReference
-from Components.config import *
 from Components.TimerSanityCheck import TimerSanityCheck
 
 class TimerEditList(Screen):
@@ -116,6 +114,7 @@ class TimerEditList(Screen):
                cur = list.getCurrent()
                if cur:
                        timer = cur[0]
+                       timer.afterEvent = AFTEREVENT.NONE
                        self.session.nav.RecordTimer.removeEntry(timer)
                        self.refill()
        
@@ -139,7 +138,7 @@ class TimerEditList(Screen):
                else:
                        data = parseEvent(event)
 
-               self.addTimer(RecordTimerEntry(serviceref, *data))
+               self.addTimer(RecordTimerEntry(serviceref, checkOldTimers = True, *data))
                
        def addTimer(self, timer):
                self.session.openWithCallback(self.finishedAdd, TimerEntry, timer)