aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/config.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-10-11 13:24:51 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-10-11 13:24:51 +0000
commitab9f30f89ade9a09d22e13e5be633f1db45c6a9a (patch)
tree3b1f560226940e06f80821772afeedd970069dcf /lib/python/Components/config.py
parent81cae3386f44ce241344a1a7faf05949eb3d435e (diff)
downloadenigma2-ab9f30f89ade9a09d22e13e5be633f1db45c6a9a.tar.gz
enigma2-ab9f30f89ade9a09d22e13e5be633f1db45c6a9a.zip
fix channelselection in timeredit dialog
Diffstat (limited to 'lib/python/Components/config.py')
-rw-r--r--lib/python/Components/config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index b16b93e3..e9c8b1c1 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -165,6 +165,13 @@ class ConfigSelection(ConfigElement):
def getValue(self):
return self._value
+ def setCurrentText(self, text):
+ i = self.choices.index(self.value)
+ del self.description[self.choices[i]]
+ self.choices[i] = text
+ self.description[text] = text
+ self._value = text
+
value = property(getValue, setValue)
def getIndex(self):