Merge branch 'bug_530_add_dm800se_support'
[enigma2.git] / lib / python / Components / Converter / StringList.py
index acbba3443ccaca4f868b2cc19b2dc7db70f6f0e1..d0886620622e35bfbdcdd441635232fd0976309d 100644 (file)
@@ -18,11 +18,21 @@ class StringList(Converter):
 
        def selectionChanged(self, index):
                self.source.selectionChanged(index)
+
+       def setIndex(self, index):
                # update all non-master targets
+               print "changed selection in listbox!"
                for x in self.downstream_elements:
+                       print "downstream element", x
                        if x is not self.master:
+                               print "is not master, so update to index", index
                                x.index = index
 
+       def getIndex(self, index):
+               return None
+       
+       index = property(getIndex, setIndex)
+
        @cached
        def getCurrent(self):
                if self.source is None or self.index is None or self.index >= len(self.source.list):
@@ -45,4 +55,5 @@ class StringList(Converter):
        index = property(getIndex, setIndex)
 
        def entry_changed(self, index):
-               self.downstream_elements.entry_changed(index)
+               if self.content:
+                       self.content.invalidateEntry(index)