Commit 74d4c594 authored by Xavier Claessens's avatar Xavier Claessens

Set to NULL the status message if it's empty.

svn path=/trunk/; revision=2084
parent cc57002f
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment