diff options
author | Owen Williams <owen@ywwg.localdomain> | 2007-01-31 16:16:33 (GMT) |
---|---|---|
committer | Owen Williams <owen@ywwg.localdomain> | 2007-01-31 16:16:33 (GMT) |
commit | 165bb9213fbe2c0dd1fe492bcdef920f0408b891 (patch) | |
tree | 25e30d5043ab2bb414994535a6bd695a01969153 /shell/model/homemodel.py | |
parent | f196eb264e4ce8c37fdd169f5d7c7c02f158d6a4 (diff) |
Update look of activities donut to match wiki
If we remove current activity, set _current_activity to None
Diffstat (limited to 'shell/model/homemodel.py')
-rw-r--r-- | shell/model/homemodel.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/model/homemodel.py b/shell/model/homemodel.py index 30ffb8b..40d8bd7 100644 --- a/shell/model/homemodel.py +++ b/shell/model/homemodel.py @@ -135,6 +135,9 @@ class HomeModel(gobject.GObject): self.emit('activity-added', activity) def _internal_remove_activity(self, activity): + if activity == self._current_activity: + self._current_activity = None + self.emit('activity-removed', activity) act_id = activity.get_id() del self._activities[act_id] |