X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FSources%2FList.py;h=6f0670a1f6f059d8485d0c0016c8a79847ce7cd8;hp=23b5395727fd3784f74842c9088a4ddfdad525bb;hb=6249914820d4028175d86237fdac9b155d1834fa;hpb=bbfcb7ea1f040d030277e2b6f2efa9ea0967bf2b diff --git a/lib/python/Components/Sources/List.py b/lib/python/Components/Sources/List.py index 23b5395..6f0670a 100644 --- a/lib/python/Components/Sources/List.py +++ b/lib/python/Components/Sources/List.py @@ -27,7 +27,7 @@ to generate HTML.""" def entry_changed(self, index): if not self.disable_callbacks: - self.downstream_elements.entry_changed(self, index) + self.downstream_elements.entry_changed(index) def modifyEntry(self, index, data): self.__list[index] = data @@ -40,6 +40,11 @@ to generate HTML.""" if self.disable_callbacks: return + # update all non-master targets + for x in self.downstream_elements: + if x is not self.master: + x.index = index + for x in self.onSelectionChanged: x() @@ -86,8 +91,9 @@ to generate HTML.""" return self.__style def setStyle(self, style): - self.__style = style - self.changed((self.CHANGED_SPECIFIC, "style")) + if self.__style != style: + self.__style = style + self.changed((self.CHANGED_SPECIFIC, "style")) style = property(getStyle, setStyle)