From 81f7d9001ac4da0f72b81d1c3d4861a011e62a1d Mon Sep 17 00:00:00 2001 From: Davyd Madeley Date: Tue, 14 Jul 2009 11:45:46 +0100 Subject: Handle the case where priv->list is not an EmpathyContactManager --- libempathy-gtk/empathy-contact-list-store.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c index 33cccec01..a4c1d7ab9 100644 --- a/libempathy-gtk/empathy-contact-list-store.c +++ b/libempathy-gtk/empathy-contact-list-store.c @@ -872,8 +872,12 @@ contact_list_store_add_contact (EmpathyContactListStore *store, } connection = empathy_contact_get_connection (contact); - flags = empathy_contact_manager_get_flags_for_connection ( + if (EMPATHY_IS_CONTACT_MANAGER (priv->list)) { + flags = empathy_contact_manager_get_flags_for_connection ( EMPATHY_CONTACT_MANAGER (priv->list), connection); + } else { + flags = 0; + } /* If no groups just add it at the top level. */ if (!groups) { -- cgit v1.2.3