From: Stefan Pluecken Date: Mon, 10 Apr 2006 20:02:52 +0000 (+0000) Subject: fix instant records (timers, deleted through the timer menu are still in the instant... X-Git-Tag: 2.6.0~3642 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/4611990889f523d995663ca0dcf10f4ce7cb6024?ds=sidebyside fix instant records (timers, deleted through the timer menu are still in the instant recording list... timers, that are in the instant recording list will be deleted now in that case) --- diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 1dc0a117..559d73dc 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -1065,11 +1065,16 @@ class InfoBarInstantRecord: return False def recordQuestionCallback(self, answer): + print "pre:\n", self.recording + if answer is None or answer[1] == "no": return list = [] - for x in self.recording: - if x.dontSave and x.isRunning(): + recording = self.recording[:] + for x in recording: + if not x in self.session.nav.RecordTimer.timer_list: + self.recording.remove(x) + elif x.dontSave and x.isRunning(): list.append(TimerEntryComponent(x, False)) if answer[1] == "changeduration": @@ -1090,6 +1095,8 @@ class InfoBarInstantRecord: self.selectedEntry = len(self.recording) self.session.openWithCallback(self.inputCallback, InputBox, title=_("How many minutes do you want to record?"), text="5", maxSize=False, type=Input.NUMBER) self.startInstantRecording(limitEvent = limitEvent) + + print "after:\n", self.recording def changeDuration(self, entry): if entry is not None: