check if screen has already been built
authorFelix Domke <tmbinc@elitedvb.net>
Sat, 18 Nov 2006 12:28:49 +0000 (12:28 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sat, 18 Nov 2006 12:28:49 +0000 (12:28 +0000)
lib/python/Components/MenuList.py

index 7087574..dcbe7c1 100644 (file)
@@ -38,7 +38,8 @@ class MenuList(HTMLComponent, GUIComponent):
                self.l.setList(self.list)
 
        def moveToIndex(self, idx):
                self.l.setList(self.list)
 
        def moveToIndex(self, idx):
-               self.instance.moveSelectionTo(idx)
+               if self.instance is not None:
+                       self.instance.moveSelectionTo(idx)
 
        def pageUp(self):
                if self.instance is not None:
 
        def pageUp(self):
                if self.instance is not None: