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()
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