diff options
Diffstat (limited to 'tutorius/TProbe.py')
-rw-r--r-- | tutorius/TProbe.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tutorius/TProbe.py b/tutorius/TProbe.py index 0b8de7e..2c976ec 100644 --- a/tutorius/TProbe.py +++ b/tutorius/TProbe.py @@ -711,25 +711,28 @@ class ProbeManager(object): print 'WARNING : Cannot find bundle' else: path = bundle.get_path() - activity_bundle = ActivityBundle(path) + + if path == get_model().get_active_activity().get_bundle_path(): + return False active_activities = get_model()._get_activities_with_window() is_active = False for active_activity in active_activities: - logging.debug("ACTIVE ACTIVITY = %s" % active_activity.get_bundle_path()) - if active_activity.get_bundle_path() is path: + #logging.debug("ACTIVE ACTIVITY = %s" % active_activity.get_bundle_path()) + if active_activity.get_bundle_path() == path: is_active = True - logging.debug("SETTING FOCUS TO ACTIVITY") + #logging.debug("SETTING FOCUS TO ACTIVITY") active_activity.get_window().activate(gtk.get_current_event_time()) if not is_active: - logging.debug("LAUNCHING ACTIVITY") + #logging.debug("LAUNCHING ACTIVITY") + activity_bundle = ActivityBundle(path) activityfactory.create(activity_bundle) self.list_pending_actions = action return True - return False + return False def install(self, action, action_installed_cb, error_cb, is_editing=False, editing_cb=None): """ @@ -749,7 +752,7 @@ class ProbeManager(object): activity = self.currentActivity if activity: - logging.debug("**** ACTIVITY SOURCE : %s" % activity) + #logging.debug("**** ACTIVITY SOURCE : %s" % activity) wait_install = self.prelaunch_activity(activity, action) |