From f78de26900d5d14c363984ff3c21952f4093a9a7 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 12 Oct 2006 00:55:15 +0000 Subject: [PATCH] fix bluescreen when pressing exit in alternative selection --- .../Plugins/Extensions/ZappingAlternatives/plugin.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/python/Plugins/Extensions/ZappingAlternatives/plugin.py b/lib/python/Plugins/Extensions/ZappingAlternatives/plugin.py index 814f174a..d3cfce20 100644 --- a/lib/python/Plugins/Extensions/ZappingAlternatives/plugin.py +++ b/lib/python/Plugins/Extensions/ZappingAlternatives/plugin.py @@ -173,10 +173,11 @@ class AlternativeZapping(Screen): self.updateServices() self.updateAlternatives() - def finishedAlternativeSelection(self, args): - self.alternatives[self["serviceslist"].getCurrent()[1]].append(str(ServiceReference(args))) - addAlternative(self["serviceslist"].getCurrent()[1], str(ServiceReference(args))) - self.updateAlternatives() + def finishedAlternativeSelection(self, *args): + if len(args): + self.alternatives[self["serviceslist"].getCurrent()[1]].append(str(ServiceReference(args))) + addAlternative(self["serviceslist"].getCurrent()[1], str(ServiceReference(args))) + self.updateAlternatives() def updateServices(self): self.serviceslist = [] -- 2.30.2