From be9519e96af2b0a26aec36b031118ae1e473fd08 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 09 Dec 2009 04:58:54 +0000 Subject: fix end tutorial message to be displayed on current activity --- diff --git a/tutorius/creator.py b/tutorius/creator.py index 12f48aa..cdd7878 100644 --- a/tutorius/creator.py +++ b/tutorius/creator.py @@ -115,9 +115,9 @@ class Creator(Object): new_state=self._state) final_event = addon.create( name='MessageButtonNext', - message=T('This is the end of this tutorial.', - source=self._probe_mgr.currentActivity) + message=T('This is the end of this tutorial.') ) + final_event.source = self._probe_mgr.currentActivity self._tutorial.add_transition( state_name=self._state, transition=(final_event, self._tutorial.END), -- cgit v0.9.1