fixes bug #556
[enigma2.git] / lib / python / Screens / ChannelSelection.py
index 8ac5386720c3626493aa4b42d04f95d21c37b364..0895c9c201398eac4b98723f21d3f7bb2b08d088 100644 (file)
@@ -449,7 +449,7 @@ class ChannelSelectionEdit:
                                if mutableAlternatives:
                                        mutableAlternatives.setListName(name)
                                        if mutableAlternatives.addService(cur_service.ref):
-                                               print "add", cur_service.toString(), "to new alternatives failed"
+                                               print "add", cur_service.ref.toString(), "to new alternatives failed"
                                        mutableAlternatives.flushChanges()
                                        self.servicelist.addService(new_ref.ref, True)
                                        self.servicelist.removeCurrent()
@@ -1181,6 +1181,7 @@ class ChannelSelection(ChannelSelectionBase, ChannelSelectionEdit, ChannelSelect
                self.servicelist.setPlayableIgnoreService(eServiceReference())
 
        def setMode(self):
+               self.rootChanged = True
                self.restoreRoot()
                lastservice=eServiceReference(self.lastservice.value)
                if lastservice.valid():
@@ -1466,7 +1467,7 @@ class ChannelSelectionRadio(ChannelSelectionBase, ChannelSelectionEdit, ChannelS
                        config.radio.lastroot.save()
 
        def restoreRoot(self):
-               tmp = [x for x in self.lastroot.value.split(';') if x != '']
+               tmp = [x for x in config.radio.lastroot.value.split(';') if x != '']
                current = [x.toString() for x in self.servicePath]
                if tmp != current or self.rootChanged:
                        cnt = 0