aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandni Verma <chandniverma2112@gmail.com>2011-03-11 10:23:15 +0800
committerChandni Verma <chandniverma2112@gmail.com>2011-03-11 10:23:15 +0800
commit0a9fd8a0a7517f099ca1b908679ab7935513cd9a (patch)
treec38885bcf1f27f5bb64b831bedff87c2d577f9c4
parentdfbccc45923082027415c3c76322febf470c5901 (diff)
downloadgsoc2013-empathy-0a9fd8a0a7517f099ca1b908679ab7935513cd9a.tar
gsoc2013-empathy-0a9fd8a0a7517f099ca1b908679ab7935513cd9a.tar.gz
gsoc2013-empathy-0a9fd8a0a7517f099ca1b908679ab7935513cd9a.tar.bz2
gsoc2013-empathy-0a9fd8a0a7517f099ca1b908679ab7935513cd9a.tar.lz
gsoc2013-empathy-0a9fd8a0a7517f099ca1b908679ab7935513cd9a.tar.xz
gsoc2013-empathy-0a9fd8a0a7517f099ca1b908679ab7935513cd9a.tar.zst
gsoc2013-empathy-0a9fd8a0a7517f099ca1b908679ab7935513cd9a.zip
Initialize EmpathyContactManager before creating a new contact->Block menuitem
-rw-r--r--libempathy-gtk/empathy-contact-menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c
index 64825b43c..7f3091a9b 100644
--- a/libempathy-gtk/empathy-contact-menu.c
+++ b/libempathy-gtk/empathy-contact-menu.c
@@ -278,11 +278,12 @@ empathy_contact_block_menu_item_new (EmpathyContact *contact)
g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
+ manager = empathy_contact_manager_dup_singleton ();
+
if (!empathy_contact_manager_initialized ()) {
return NULL;
}
- manager = empathy_contact_manager_dup_singleton ();
connection = empathy_contact_get_connection (contact);
flags = empathy_contact_manager_get_flags_for_connection (manager,