aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-location-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-location-manager.c')
-rw-r--r--libempathy-gtk/empathy-location-manager.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index b48278baa..b658b13d6 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -428,8 +428,12 @@ publish_cb (EmpathyConf *conf,
if (!empathy_conf_get_bool (conf, key, &can_publish))
return;
- if (can_publish && !priv->is_setup)
- setup_geoclue (manager);
+ if (can_publish)
+ {
+ if (!priv->is_setup)
+ setup_geoclue (manager);
+ publish_location_to_all_accounts (manager);
+ }
}