fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 20 Feb 2006 14:43:39 +0000 (14:43 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 20 Feb 2006 14:43:39 +0000 (14:43 +0000)
lib/python/Screens/ChannelSelection.py

index 5c5cc70..86388e3 100644 (file)
@@ -882,7 +882,7 @@ class ChannelSelection(ChannelSelectionBase, ChannelSelectionEdit, ChannelSelect
                        if pathstr is not None and pathstr.find(refstr) == 0:
                                self.restoreRoot()
                                lastservice=eServiceReference(config.tv.lastservice.value)
-                               if lastservice is not None:
+                               if lastservice.valid():
                                        self.setCurrentSelection(lastservice)
                                return True
                return False
@@ -986,7 +986,7 @@ class ChannelSelectionRadio(ChannelSelectionBase, ChannelSelectionEdit, ChannelS
                        if pathstr is not None and pathstr.find(refstr) == 0:
                                self.restoreRoot()
                                lastservice=eServiceReference(config.radio.lastservice.value)
-                               if lastservice is not None:
+                               if lastservice.valid():
                                        self.setCurrentSelection(lastservice)
                                return True
                return False