git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c49592
)
ignore requests to invalidate non-existing entries
author
Felix Domke
<tmbinc@elitedvb.net>
Sat, 18 Nov 2006 10:45:59 +0000
(10:45 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Sat, 18 Nov 2006 10:45:59 +0000
(10:45 +0000)
lib/python/Components/ConfigList.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/ConfigList.py
b/lib/python/Components/ConfigList.py
index 2de075c62f07044cda85e6ea2869658505b6cca9..4dd401f9475a0e0c5b3da27f6f82add44a5d330e 100644
(file)
--- 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