From 4611990889f523d995663ca0dcf10f4ce7cb6024 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Mon, 10 Apr 2006 20:02:52 +0000 Subject: [PATCH] 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) --- lib/python/Screens/InfoBarGenerics.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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: -- 2.30.2