fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 8 Apr 2006 14:07:34 +0000 (14:07 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 8 Apr 2006 14:07:34 +0000 (14:07 +0000)
lib/python/Plugins/Extensions/CutListEditor/plugin.py

index 7e591d26968a6d68253d0ad8eb059f463f91d909..a5adc51affbed4666f1823a365dc724c02d19907 100644 (file)
@@ -207,8 +207,9 @@ Then seek to the end, press OK, select 'end cut'. That's it.
                pass
        
        def setType(self, index, type):
                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()
        
        def setIn(self):
                m = self["Cutlist"].getCurrentIndex()