aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavyd Madeley <davyd@madeley.id.au>2009-07-14 18:45:46 +0800
committerDavyd Madeley <davyd@madeley.id.au>2009-07-15 18:12:16 +0800
commit81f7d9001ac4da0f72b81d1c3d4861a011e62a1d (patch)
treebd84044c8111ba22c8144f47b48d2158b247039a
parent0ce1b4664b5706744f7d295f34b726fb61fd636a (diff)
downloadgsoc2013-empathy-81f7d9001ac4da0f72b81d1c3d4861a011e62a1d.tar
gsoc2013-empathy-81f7d9001ac4da0f72b81d1c3d4861a011e62a1d.tar.gz
gsoc2013-empathy-81f7d9001ac4da0f72b81d1c3d4861a011e62a1d.tar.bz2
gsoc2013-empathy-81f7d9001ac4da0f72b81d1c3d4861a011e62a1d.tar.lz
gsoc2013-empathy-81f7d9001ac4da0f72b81d1c3d4861a011e62a1d.tar.xz
gsoc2013-empathy-81f7d9001ac4da0f72b81d1c3d4861a011e62a1d.tar.zst
gsoc2013-empathy-81f7d9001ac4da0f72b81d1c3d4861a011e62a1d.zip
Handle the case where priv->list is not an EmpathyContactManager
-rw-r--r--libempathy-gtk/empathy-contact-list-store.c6
1 files changed, 5 insertions, 1 deletions
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) {