aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:49:08 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:49:08 +0800
commit74d4c594bb1893558b08fe0fa40019cff59c2cda (patch)
tree38fd0f5770f5a04aa5be93958a0f26fb7a18a0de
parentcc57002f9ad20cc775b45dc8df66e30ff7f3018b (diff)
downloadgsoc2013-empathy-74d4c594bb1893558b08fe0fa40019cff59c2cda.tar
gsoc2013-empathy-74d4c594bb1893558b08fe0fa40019cff59c2cda.tar.gz
gsoc2013-empathy-74d4c594bb1893558b08fe0fa40019cff59c2cda.tar.bz2
gsoc2013-empathy-74d4c594bb1893558b08fe0fa40019cff59c2cda.tar.lz
gsoc2013-empathy-74d4c594bb1893558b08fe0fa40019cff59c2cda.tar.xz
gsoc2013-empathy-74d4c594bb1893558b08fe0fa40019cff59c2cda.tar.zst
gsoc2013-empathy-74d4c594bb1893558b08fe0fa40019cff59c2cda.zip
Set to NULL the status message if it's empty.
svn path=/trunk/; revision=2084
-rw-r--r--libempathy/empathy-idle.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c
index 66434a81e..9eea49771 100644
--- a/libempathy/empathy-idle.c
+++ b/libempathy/empathy-idle.c
@@ -410,12 +410,14 @@ empathy_idle_init (EmpathyIdle *idle)
g_clear_error (&error);
}
priv->status = mission_control_get_presence_message_actual (priv->mc, &error);
- if (error) {
- DEBUG ("Error getting actual presence message: %s", error->message);
-
+ if (error || G_STR_EMPTY (priv->status)) {
g_free (priv->status);
priv->status = NULL;
- g_clear_error (&error);
+
+ if (error) {
+ DEBUG ("Error getting actual presence message: %s", error->message);
+ g_clear_error (&error);
+ }
}
dbus_g_proxy_connect_signal (DBUS_G_PROXY (priv->mc),