diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/config.py | 7 | ||||
| -rw-r--r-- | lib/python/Screens/TimerEntry.py | 2 |
2 files changed, 8 insertions, 1 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): diff --git a/lib/python/Screens/TimerEntry.py b/lib/python/Screens/TimerEntry.py index 2bf5bd18..5be0f826 100644 --- a/lib/python/Screens/TimerEntry.py +++ b/lib/python/Screens/TimerEntry.py @@ -214,7 +214,7 @@ class TimerEntry(Screen, ConfigListScreen): def finishedChannelSelection(self, *args): if len(args): self.timer.service_ref = ServiceReference(args[0]) - self.timerentry_service.vals = (str(self.timer.service_ref.getServiceName()),) + self.timerentry_service.setCurrentText(self.timer.service_ref.getServiceName()) self["config"].invalidate(self.channelEntry) def getTimestamp(self, date, mytime): |
