diff options
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index b7f4a2696..062bcebf4 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -969,10 +969,14 @@ static void update_avatar_chooser_account_cb (EmpathyAccountChooser *account_chooser, EmpathyAvatarChooser *avatar_chooser) { - TpConnection *connection; + TpAccount *account; + + account = empathy_account_chooser_dup_account (account_chooser); + if (account == NULL) + return; - connection = empathy_account_chooser_get_connection (account_chooser); - empathy_avatar_chooser_set_connection (avatar_chooser, connection); + empathy_avatar_chooser_set_account (avatar_chooser, account); + g_object_unref (account); } static void |