From 303583774ff0ada5674d5731a926ccf068d4c9b6 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Sat, 8 Apr 2006 14:07:34 +0000 Subject: [PATCH] fix --- lib/python/Plugins/Extensions/CutListEditor/plugin.py | 5 +++-- 1 file 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() -- 2.30.2