From ab9f30f89ade9a09d22e13e5be633f1db45c6a9a Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Wed, 11 Oct 2006 13:24:51 +0000 Subject: fix channelselection in timeredit dialog --- lib/python/Components/config.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/python/Components/config.py') 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): -- cgit v1.2.3