[empathy] Handle the case where priv->list is not an EmpathyContactManager
- From: Davyd Madeley <davyd src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Handle the case where priv->list is not an EmpathyContactManager
- Date: Wed, 15 Jul 2009 10:15:09 +0000 (UTC)
commit 81f7d9001ac4da0f72b81d1c3d4861a011e62a1d
Author: Davyd Madeley <davyd madeley id au>
Date: Tue Jul 14 11:45:46 2009 +0100
Handle the case where priv->list is not an EmpathyContactManager
libempathy-gtk/empathy-contact-list-store.c | 6 +++++-
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 33cccec..a4c1d7a 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]