[empathy] create_dialog_content: check if the TpConnection is still valid



commit a3c10ee7b1801aa50293bf85bf845f5110005bf1
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Mar 15 16:03:20 2012 +0100

    create_dialog_content: check if the TpConnection is still valid
    
    tp_connection_get_contacts_by_handle() will raise a warning if the
    TpConnection has been invalidated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671035

 src/empathy-accounts-dialog.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 847e1a5..0bcf0ed 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -821,7 +821,8 @@ account_dialog_create_dialog_content (EmpathyAccountsDialog *dialog,
   if (account != NULL)
     conn = tp_account_get_connection (account);
 
-  if (conn != NULL)
+  if (conn != NULL &&
+      tp_proxy_get_invalidated (conn) == NULL)
     {
       empathy_tp_contact_factory_get_from_handle (conn,
           tp_connection_get_self_handle (conn),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]