X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/76e87479554f771723ea4005788f9318cd1654f4..ebb18fe31efe7c97288f815950020b3f2dd6af98:/lib/python/Components/EventInfo.py diff --git a/lib/python/Components/EventInfo.py b/lib/python/Components/EventInfo.py index ac7ed9b5..c8e5a13f 100644 --- a/lib/python/Components/EventInfo.py +++ b/lib/python/Components/EventInfo.py @@ -25,13 +25,12 @@ class EventInfo(PerServiceDisplay): if service != None: info = service.info() if info is not None: - ev = eServiceEventPtr() - if info.getEvent(ev, self.now_or_next & 1) == 0: + ev = info.getEvent(self.now_or_next & 1) + if ev is not None: if self.now_or_next & 2: self.setText("%d min" % (ev.m_duration / 60)) else: self.setText(ev.m_event_name) - print "new event info in EventInfo! yeah!" def stopEvent(self): self.setText(