]> git.0d.be Git - empathy.git/commitdiff
create_dialog_content: check if the TpConnection is still valid
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 15 Mar 2012 15:03:20 +0000 (16:03 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 15 Mar 2012 15:14:31 +0000 (16:14 +0100)
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

index 847e1a55ef7892c163e17b96c2df56f8779fd85b..0bcf0ed210535c335503ff206bc34a0f8ec6d9cf 100644 (file)
@@ -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),