X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/5b0264e7606f9eee59586b50b5ca48599677d889..baa6968ed152a4e78ba27e3e48364a6b62680db2:/lib/python/Screens/Ci.py?ds=sidebyside diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py index 09083f4e..b6f315b4 100644 --- a/lib/python/Screens/Ci.py +++ b/lib/python/Screens/Ci.py @@ -235,7 +235,8 @@ class CiMessageHandler: print "no session" def dlgClosed(self, slot): - del self.dlgs[slot] + if slot in self.dlgs: + del self.dlgs[slot] def registerCIMessageHandler(self, slot, func): self.unregisterCIMessageHandler(slot) @@ -273,6 +274,12 @@ class CiSelection(Screen): menuList.list = self.list menuList.l.setList(self.list) self["entries"] = menuList + self["entries"].onSelectionChanged.append(self.selectionChanged) + self["text"] = Label(_("Slot %d")%(1)) + + def selectionChanged(self): + cur_idx = self["entries"].getCurrentIndex() + self["text"].setText(_("Slot %d")%((cur_idx / 4)+1)) def keyConfigEntry(self, key): try: