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 708757474af99034b9cefb72502e733fe314bd71..dcbe7c1a45ea12ed93236d1ead3bfb152d36d62e 100644 (file)
@@ -38,7 +38,8 @@ class MenuList(HTMLComponent, GUIComponent):
                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: