From: Andreas Monzner Date: Sun, 16 Apr 2006 09:56:00 +0000 (+0000) Subject: make parameter for finishedChannelSelction optional X-Git-Tag: 2.6.0~3611 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/2a6ff13c824fea58c274290495196e98228e27f1?ds=sidebyside make parameter for finishedChannelSelction optional --- diff --git a/lib/python/Plugins/Extensions/ZappingAlternatives/plugin.py b/lib/python/Plugins/Extensions/ZappingAlternatives/plugin.py index 6dcdfee3..3ab3907d 100644 --- a/lib/python/Plugins/Extensions/ZappingAlternatives/plugin.py +++ b/lib/python/Plugins/Extensions/ZappingAlternatives/plugin.py @@ -216,13 +216,14 @@ class AlternativeZapping(Screen): def greenKey(self): self.session.openWithCallback(self.finishedChannelSelection, SimpleChannelSelection, _("Select reference service")) - def finishedChannelSelection(self, args): - serviceString = str(ServiceReference(args)) - if not self.alternatives.has_key(serviceString): - self.alternatives[serviceString] = [] - self.updateServices() - self.selectService(serviceString) - self.updateAlternatives() + def finishedChannelSelection(self, *args): + if len(args): + serviceString = str(ServiceReference(args)) + if not self.alternatives.has_key(serviceString): + self.alternatives[serviceString] = [] + self.updateServices() + self.selectService(serviceString) + self.updateAlternatives() def yellowKey(self): if len(self.serviceslist) > 0: