diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-03-04 11:49:13 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-03-04 11:49:13 +0100 |
| commit | 6912901710bd794bf67d1b9ffab9b3a90e4bf1dc (patch) | |
| tree | 315a3d736239596356fd29edccbc7348789a8e75 /lib/python | |
| parent | 8aefeab76e692a2a0edf057ec6ad2b743375f4dd (diff) | |
| download | enigma2-6912901710bd794bf67d1b9ffab9b3a90e4bf1dc.tar.gz enigma2-6912901710bd794bf67d1b9ffab9b3a90e4bf1dc.zip | |
fix possible crash
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 20a239a2..64ed35f7 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -1525,7 +1525,7 @@ class InfoBarInstantRecord: print "after:\n", self.recording def setEndtime(self, entry): - if entry is not None: + if entry is not None and entry >= 0: self.selectedEntry = entry self.endtime=ConfigClock(default = self.recording[self.selectedEntry].end) dlg = self.session.openWithCallback(self.TimeDateInputClosed, TimeDateInput, self.endtime) @@ -1542,7 +1542,7 @@ class InfoBarInstantRecord: self.session.nav.RecordTimer.timeChanged(self.recording[self.selectedEntry]) def changeDuration(self, entry): - if entry is not None: + if entry is not None and entry >= 0: self.selectedEntry = entry self.session.openWithCallback(self.inputCallback, InputBox, title=_("How many minutes do you want to record?"), text="5", maxSize=False, type=Input.NUMBER) |
