diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-11-18 10:45:59 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-11-18 10:45:59 +0000 |
| commit | 0e7f46d6379dbf08183caadfa33b8d0648418d9e (patch) | |
| tree | 8ccd1a60d226f791251db3a856afab2bf7c285e4 /lib/python/Components | |
| parent | 1c49592bb36371a4a717156a2f93c557f972390c (diff) | |
| download | enigma2-0e7f46d6379dbf08183caadfa33b8d0648418d9e.tar.gz enigma2-0e7f46d6379dbf08183caadfa33b8d0648418d9e.zip | |
ignore requests to invalidate non-existing entries
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/ConfigList.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/python/Components/ConfigList.py b/lib/python/Components/ConfigList.py index 2de075c6..4dd401f9 100644 --- a/lib/python/Components/ConfigList.py +++ b/lib/python/Components/ConfigList.py @@ -46,9 +46,12 @@ class ConfigList(HTMLComponent, GUIComponent, object): def invalidateCurrent(self): self.l.invalidateEntry(self.l.getCurrentSelectionIndex()) - + def invalidate(self, entry): - self.l.invalidateEntry(self.__list.index(entry)) + # when the entry to invalidate does not exist, just ignore the request. + # this eases up conditional setup screens a lot. + if entry in self.__list: + self.l.invalidateEntry(self.__list.index(entry)) GUI_WIDGET = eListbox |
