diff options
author | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-10-08 19:51:33 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-10-08 19:51:33 (GMT) |
commit | 38cb73f56dd83c58252a27ace7b067109cefa311 (patch) | |
tree | 0675193a42898045c63af742493fc341c53631a7 /src | |
parent | 29a28b1ecdaac753a2fcd3611ec88b5951320e6c (diff) |
Fix launching activity bundles from the journal.
Diffstat (limited to 'src')
-rw-r--r-- | src/jarabe/journal/misc.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jarabe/journal/misc.py b/src/jarabe/journal/misc.py index 0184cd8..269f238 100644 --- a/src/jarabe/journal/misc.py +++ b/src/jarabe/journal/misc.py @@ -151,7 +151,12 @@ def resume(jobject, bundle_id=None): logging.debug('activityfactory.creating bundle with id %r', bundle.get_bundle_id()) - activityfactory.create(bundle) + installed_bundle = registry.get_bundle(bundle.get_bundle_id()) + if installed_bundle: + activityfactory.create(installed_bundle) + else: + logging.error('Bundle %r is not installed.', + bundle.get_bundle_id()) elif jobject.is_content_bundle() and not bundle_id: |