diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-09-15 11:14:27 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-09-15 11:14:27 (GMT) |
commit | 54ec01e6e86c7fe3c82876d65d461bb27284254b (patch) | |
tree | a97c117899c8e87804f4ace91f74f941f1248644 /src | |
parent | 99ffb163d9af204b232e7a5b34c8b61628178b27 (diff) |
Dont crash when we dont yet have a window
Diffstat (limited to 'src')
-rw-r--r-- | src/model/homeactivity.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/model/homeactivity.py b/src/model/homeactivity.py index 86e9eb8..47f62fe 100644 --- a/src/model/homeactivity.py +++ b/src/model/homeactivity.py @@ -167,7 +167,10 @@ class HomeActivity(gobject.GObject): def get_type(self): """Retrieve the activity bundle id for future reference""" - return wm.get_bundle_id(self._window) + if self._window is None: + return None + else: + return wm.get_bundle_id(self._window) def is_journal(self): """Returns boolean if the activity is of type JournalActivity""" |