diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-08 16:23:16 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-08 16:23:16 (GMT) |
commit | 7232f0e0ea1f4209270a7e3baf8f3ace0061ec53 (patch) | |
tree | 4d411b06d4db213fbcfbd0ab729e7debc911c733 /shell | |
parent | bfb09abf7d147f13769b4cb2ecfbea719a8b7b8b (diff) |
Check there is actually a current activity before getting his id
Diffstat (limited to 'shell')
-rw-r--r-- | shell/frame/RightPanel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/frame/RightPanel.py b/shell/frame/RightPanel.py index 5280a8f..818e8c8 100644 --- a/shell/frame/RightPanel.py +++ b/shell/frame/RightPanel.py @@ -47,7 +47,7 @@ class RightPanel(GridGroup): def __activity_appeared_cb(self, pservice, activity_ps): activity = self._shell.get_current_activity() - if activity_ps.get_id() == activity.get_id(): + if activity and activity_ps.get_id() == activity.get_id(): self._set_activity_ps(activity_ps) def _set_activity_ps(self, activity_ps): |