From 6b19934b9a237b648f36b0da943bde046b6488c0 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sun, 20 May 2012 13:07:57 +0200 Subject: [PATCH] Don't put the status in the header if the user has none --- src/empathy-call-window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 191a2383..564504f9 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -1875,7 +1875,11 @@ set_remote_user_name (EmpathyCallWindow *self, const gchar *status = empathy_contact_get_status (contact); gchar *label; - label = g_strdup_printf ("%s\n%s", alias, status); + if (status != NULL) + label = g_strdup_printf ("%s\n%s", alias, status); + else + label = g_strdup (alias); + gtk_label_set_markup (GTK_LABEL (self->priv->remote_user_name_toolbar), label); g_free (label); -- 2.39.2