From 7d4dd6e3b70ec5e83f621ff23ae2ea9e16e85f36 Mon Sep 17 00:00:00 2001 From: Artem Garmash Date: Fri, 12 Feb 2010 00:48:02 +0200 Subject: [PATCH] Don't show contact if it's null --- src/el-home-applet.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/el-home-applet.c b/src/el-home-applet.c index 69185e3..7991a94 100644 --- a/src/el-home-applet.c +++ b/src/el-home-applet.c @@ -648,6 +648,8 @@ show_contact (ELHomeApplet *self) { ELHomeAppletPrivate *priv = self->priv; + g_return_if_fail (priv->contact); + gtk_label_set_text (GTK_LABEL (priv->sender), osso_abook_contact_get_display_name (priv->contact)); resize_sender (priv); @@ -1210,11 +1212,13 @@ read_event (ELHomeApplet *self) if (priv->event_id >= 0) { gboolean new_account = g_strcmp0 (priv->local_id, local_id); - if (g_strcmp0 (priv->remote_id, remote_id) || new_account) { + if (g_strcmp0 (priv->remote_id, remote_id) || + new_account || + !priv->contact) { clean_contact (self); start_aggregator (self); } - else { + else if (priv->contact) { show_contact (self); } -- 1.7.9.5