From 3fbee662dbce6f75e85c39e3dd45019d30cda17e Mon Sep 17 00:00:00 2001 From: xclaesse Date: Thu, 22 May 2008 10:05:12 +0000 Subject: Do not add a separator on the contact menu if there is no remove feature. git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1117 4ee84921-47dd-4033-b63a-18d7a039a3e4 --- libempathy-gtk/empathy-contact-list-view.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libempathy-gtk/empathy-contact-list-view.c') diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index 6935ead50..58ae7711f 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -1293,10 +1293,9 @@ empathy_contact_list_view_get_contact_menu (EmpathyContactListView *view) menu = empathy_contact_menu_new (contact, priv->contact_features); - if (!menu && - !(priv->list_features & EMPATHY_CONTACT_LIST_FEATURE_CONTACT_REMOVE)) { + if (!(priv->list_features & EMPATHY_CONTACT_LIST_FEATURE_CONTACT_REMOVE)) { g_object_unref (contact); - return NULL; + return menu; } if (menu) { -- cgit v1.2.3