fix channelselection in timeredit dialog
[enigma2.git] / lib / python / Components / config.py
index b16b93e343fb65596a52606640eb9b0fa58331aa..e9c8b1c15207ababdff7f09105ebc6046ce61657 100644 (file)
@@ -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):