- old_service_running = set.oldRef and cur_ref and cur_ref == set.oldRef and set.oldService and set.oldService == str(nav.getCurrentService())
-# print "old_service_running", old_service_running
- if not old_service_running and set.oldService:
- set.oldService = None
+ old_service_running = set.oldRef and cur_ref and cur_ref == set.oldRef and set.oldServiceStr == nav.getCurrentService().getPtrString()
+ if not old_service_running and set.oldServiceStr:
+ set.oldServiceStr = None