]> git.0d.be Git - empathy.git/commitdiff
Choose an best_contact even if it isn't sensitive in the EmpathyIndividualMenu
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 30 Aug 2010 15:28:37 +0000 (16:28 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 30 Aug 2010 15:28:37 +0000 (16:28 +0100)
This fixes the "Send File" entry not working.

libempathy-gtk/empathy-individual-menu.c

index b08b242b362718055fc72cbcee91ff1158473177..69f0330f4f310e3c52f4b5f726613ad1fb79048f 100644 (file)
@@ -440,7 +440,7 @@ menu_item_set_first_contact (GtkWidget *item,
           contact = empathy_contact_dup_from_tp_contact (tp_contact);
           empathy_contact_set_persona (contact, FOLKS_PERSONA (l->data));
 
-          if (sensitivity_predicate == NULL ||
+          if (best_contact == NULL || sensitivity_predicate == NULL ||
               sensitivity_predicate (contact) == TRUE)
             {
               tp_clear_object (&best_contact);