aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-10-26 17:01:07 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-10-26 17:01:07 +0000
commit33d3f132bc35d60fecd89aff87069889c4930e9d (patch)
treef395a0f8621eb3a2a3d1902feba1f632ff51d2cc /lib/python
parentd7ade1df1e1d8e0259378d783a38ae49e3271fd6 (diff)
downloadenigma2-33d3f132bc35d60fecd89aff87069889c4930e9d.tar.gz
enigma2-33d3f132bc35d60fecd89aff87069889c4930e9d.zip
fix 'remove entry' when timer debug list is already empty
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/TimerEntry.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Screens/TimerEntry.py b/lib/python/Screens/TimerEntry.py
index 4f1d6d68..faf4f304 100644
--- a/lib/python/Screens/TimerEntry.py
+++ b/lib/python/Screens/TimerEntry.py
@@ -343,7 +343,10 @@ class TimerLog(Screen):
}, -1)
def deleteEntry(self):
- self.log_entries.remove(self["loglist"].getCurrent()[1])
+ cur = self["loglist"].getCurrent()
+ if cur is None:
+ return
+ self.log_entries.remove(cur[1])
self.fillLogList()
self["loglist"].l.setList(self.list)
self.updateText()