fix bsod when opening similar event list when no similar events exist
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 20 Apr 2006 13:56:02 +0000 (13:56 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 20 Apr 2006 13:56:02 +0000 (13:56 +0000)
lib/python/Screens/EventView.py

index 522e1b4..05f2b1e 100644 (file)
@@ -133,7 +133,7 @@ class EventViewBase:
                        self["key_red"].setText(_("Similar"))
 
        def openSimilarList(self):
-               if self.similarEPGCB is not None:
+               if self.similarEPGCB is not None and len(self["key_red"].getText()):
                        id = self.event and self.event.getEventId()
                        refstr = str(self.currentService)
                        if id is not None: