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 5c5cc700aca917b8bd2b6de79466ed104ce99786..86388e326f94e5d357e22e820ff4b2432d5fb943 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