git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
517b078
)
optimize: re-use old content when list changes
author
Felix Domke
<tmbinc@elitedvb.net>
Thu, 12 Apr 2007 19:57:48 +0000
(19:57 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Thu, 12 Apr 2007 19:57:48 +0000
(19:57 +0000)
lib/python/Components/Converter/StringList.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Converter/StringList.py
b/lib/python/Components/Converter/StringList.py
index 1304c6430bf19be16934538008e7a86bc8ab8640..4199212a33f348bbe1494a95500e7adea357b464 100644
(file)
--- a/
lib/python/Components/Converter/StringList.py
+++ b/
lib/python/Components/Converter/StringList.py
@@
-6,9
+6,12
@@
class StringList(Converter):
"""Turns a simple python list into a list which can be used in a listbox."""
def __init__(self, type):
Converter.__init__(self, type)
"""Turns a simple python list into a list which can be used in a listbox."""
def __init__(self, type):
Converter.__init__(self, type)
+ self.content = None
def changed(self, what):
def changed(self, what):
- self.content = eListboxPythonStringContent()
+ if not self.content:
+ self.content = eListboxPythonStringContent()
+
if self.source:
self.content.setList(self.source.list)
self.downstream_elements.changed(what)
if self.source:
self.content.setList(self.source.list)
self.downstream_elements.changed(what)