Switch to existing instance of an activity if it's already running #410

This commit is contained in:
Tomeu Vizoso 2009-02-24 10:34:22 +01:00
parent 30e67cc226
commit e2696086e6

View File

@ -320,11 +320,11 @@ class ActivityCreationHandler(gobject.GObject):
if count > 1:
logging.debug("Multiple objects has the same activity_id.")
self._handle.object_id = jobjects[0]['uid']
self._create_activity()
self._launch_activity()
def _find_object_error_handler(self, err):
logging.error("Datastore find failed %s" % err)
self._create_activity()
self._launch_activity()
def create(bundle, activity_handle=None):
"""Create a new activity from its name."""