diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-09-19 17:01:21 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2009-12-01 17:57:33 (GMT) |
commit | d8b1f926c950a15832dea8183de0befff1cb85f9 (patch) | |
tree | 9e3b74d0a7097cc3017a82f87dc387e4869c0170 | |
parent | ede76ec58158c64740a4d7c4c987015d9c943f05 (diff) |
Create new activity_id if the entry lacks one #1276
-rw-r--r-- | src/jarabe/desktop/favoritesview.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jarabe/desktop/favoritesview.py b/src/jarabe/desktop/favoritesview.py index 03d9f16..5ea76b8 100644 --- a/src/jarabe/desktop/favoritesview.py +++ b/src/jarabe/desktop/favoritesview.py @@ -526,6 +526,9 @@ class ActivityIcon(CanvasIcon): if self._journal_entries: entry = self._journal_entries[0] + if not entry['activity_id']: + entry['activity_id'] = activityfactory.create_activity_id() + shell_model = shell.get_model() activity = shell_model.get_activity_by_id(entry['activity_id']) if activity: |