aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-08 14:07:34 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-08 14:07:34 +0000
commit303583774ff0ada5674d5731a926ccf068d4c9b6 (patch)
treedd80bf424ee39c355ea5bf6c0fb7cef6c5d7a417 /lib/python
parent67ac08bd138e956111e98a80a3c3adabf5e71d48 (diff)
downloadenigma2-303583774ff0ada5674d5731a926ccf068d4c9b6.tar.gz
enigma2-303583774ff0ada5674d5731a926ccf068d4c9b6.zip
fix
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Plugins/Extensions/CutListEditor/plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Plugins/Extensions/CutListEditor/plugin.py b/lib/python/Plugins/Extensions/CutListEditor/plugin.py
index 7e591d26..a5adc51a 100644
--- a/lib/python/Plugins/Extensions/CutListEditor/plugin.py
+++ b/lib/python/Plugins/Extensions/CutListEditor/plugin.py
@@ -207,8 +207,9 @@ Then seek to the end, press OK, select 'end cut'. That's it.
pass
def setType(self, index, type):
- self.cut_list[index] = (self.cut_list[index][0], type)
- self["Cutlist"].setIndex(index, CutListEntry(*self.cut_list[index]))
+ if len(self.cut_list):
+ self.cut_list[index] = (self.cut_list[index][0], type)
+ self["Cutlist"].setIndex(index, CutListEntry(*self.cut_list[index]))
def setIn(self):
m = self["Cutlist"].getCurrentIndex()