aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/ConfigList.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/ConfigList.py')
-rw-r--r--lib/python/Components/ConfigList.py7
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