Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/Shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/view/Shell.py')
-rw-r--r--shell/view/Shell.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py
index c4b4b1e..5bce107 100644
--- a/shell/view/Shell.py
+++ b/shell/view/Shell.py
@@ -142,7 +142,10 @@ class Shell(gobject.GObject):
del self._hosts[xid]
def _active_activity_changed_cb(self, home_model, home_activity):
- host = self._hosts[home_activity.get_xid()]
+ if home_activity:
+ host = self._hosts[home_activity.get_xid()]
+ else:
+ host = None
if self._current_host:
self._current_host.set_active(False)