diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-04-10 20:02:52 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-04-10 20:02:52 +0000 |
| commit | 4611990889f523d995663ca0dcf10f4ce7cb6024 (patch) | |
| tree | 46080c0763112cf1375824bc6321fbc9c31e3bb5 /lib/python/Screens | |
| parent | f7672781a51e8a21ccbd48ce53a72ad61f5d5e7e (diff) | |
| download | enigma2-4611990889f523d995663ca0dcf10f4ce7cb6024.tar.gz enigma2-4611990889f523d995663ca0dcf10f4ce7cb6024.zip | |
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)
Diffstat (limited to 'lib/python/Screens')
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 11 |
1 files 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: |
