aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-15 23:03:20 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-15 23:14:31 +0800
commita3c10ee7b1801aa50293bf85bf845f5110005bf1 (patch)
tree26417fabaac8e5e11db307b879b597dda4a234da
parent500ef8529e04b2e1606f35d9c0697ef96423a828 (diff)
downloadgsoc2013-empathy-a3c10ee7b1801aa50293bf85bf845f5110005bf1.tar
gsoc2013-empathy-a3c10ee7b1801aa50293bf85bf845f5110005bf1.tar.gz
gsoc2013-empathy-a3c10ee7b1801aa50293bf85bf845f5110005bf1.tar.bz2
gsoc2013-empathy-a3c10ee7b1801aa50293bf85bf845f5110005bf1.tar.lz
gsoc2013-empathy-a3c10ee7b1801aa50293bf85bf845f5110005bf1.tar.xz
gsoc2013-empathy-a3c10ee7b1801aa50293bf85bf845f5110005bf1.tar.zst
gsoc2013-empathy-a3c10ee7b1801aa50293bf85bf845f5110005bf1.zip
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
-rw-r--r--src/empathy-accounts-dialog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 847e1a55e..0bcf0ed21 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),