[empathy: 25/35] Initialize EmpathyContactManager before creating a new contact->Block menuitem



commit 0a9fd8a0a7517f099ca1b908679ab7935513cd9a
Author: Chandni Verma <chandniverma2112 gmail com>
Date:   Fri Mar 11 07:53:15 2011 +0530

    Initialize EmpathyContactManager before creating a new contact->Block menuitem

 libempathy-gtk/empathy-contact-menu.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c
index 64825b4..7f3091a 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,



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