diff options
Diffstat (limited to 'lib/python/Components/config.py')
| -rw-r--r-- | lib/python/Components/config.py | 7 |
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): |
