Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-16 13:04:49 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-16 13:04:49 (GMT)
commitc0cd2cf9a60986ab90f696470c0b2db84ac62b1e (patch)
tree5a01bb6abfcacbc36eb304c4135a2a192b39925b /shell
parent8a88de864b84d3cc798412c65712edb2e8271527 (diff)
Prevent activity launching being locked by error during launch.
Diffstat (limited to 'shell')
-rw-r--r--shell/view/Shell.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py
index b8678dd..6d74f29 100644
--- a/shell/view/Shell.py
+++ b/shell/view/Shell.py
@@ -140,14 +140,16 @@ class Shell(gobject.GObject):
logging.debug('Shell.start_activity')
self._activities_starting.add(activity_type)
+ try:
+ handler = activityfactory.create(activity_type)
- handler = activityfactory.create(activity_type)
+ home_model = self._model.get_home()
+ home_model.notify_activity_launch(handler.get_activity_id(),
+ activity_type)
- home_model = self._model.get_home()
- home_model.notify_activity_launch(handler.get_activity_id(),
- activity_type)
-
- handler.connect('error', self._start_error_cb, home_model)
+ handler.connect('error', self._start_error_cb, home_model)
+ except:
+ self._activities_starting.remove(activity_type)
# Zoom to Home for launch feedback
self.set_zoom_level(sugar.ZOOM_HOME)