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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/Components/ConfigList.py b/lib/python/Components/ConfigList.py
index 7ed6031a..47b577e2 100644
--- a/lib/python/Components/ConfigList.py
+++ b/lib/python/Components/ConfigList.py
@@ -48,6 +48,10 @@ class ConfigList(HTMLComponent, GUIComponent, object):
def getCurrentIndex(self):
return self.l.getCurrentSelectionIndex()
+ def setCurrentIndex(self, index):
+ if self.instance is not None:
+ self.instance.moveSelectionTo(index)
+
def invalidateCurrent(self):
self.l.invalidateEntry(self.l.getCurrentSelectionIndex())