aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-16 09:56:00 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-16 09:56:00 +0000
commit2a6ff13c824fea58c274290495196e98228e27f1 (patch)
tree05386999220644530808f4820c7146e6f795a7fe /lib/python
parentd9d89d9547e96de26d293fff1c901a25e889411e (diff)
downloadenigma2-2a6ff13c824fea58c274290495196e98228e27f1.tar.gz
enigma2-2a6ff13c824fea58c274290495196e98228e27f1.zip
make parameter for finishedChannelSelction optional
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Plugins/Extensions/ZappingAlternatives/plugin.py15
1 files changed, 8 insertions, 7 deletions
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: