From d43e4676bd757d1de73b8dd669154ffd42192b10 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 22 May 2006 15:21:41 +0000 Subject: fix bluescreen in ci menu when no entries in a menulist an ok is pressed reset CI when opening CI Menu and ci is not initialized yet --- lib/python/Screens/Ci.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/python') diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py index a32ce344..ecc56044 100644 --- a/lib/python/Screens/Ci.py +++ b/lib/python/Screens/Ci.py @@ -89,7 +89,11 @@ class CiMmi(Screen): print "do nothing - wait" elif self.tag == "MENU": print "answer MENU" - eDVBCI_UI.getInstance().answerMenu(self.slotid, self["entries"].getCurrent()[1]) + cur = self["entries"].getCurrent() + if cur: + eDVBCI_UI.getInstance().answerMenu(self.slotid, cur[1]) + else: + eDVBCI_UI.getInstance().answerMenu(self.slotid, 0) self.showWait() elif self.tag == "LIST": print "answer LIST" -- cgit v1.2.3