]> git.0d.be Git - empathy.git/commitdiff
Do not popup the Save As menu if the contact has no avatar.
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 8 Jul 2008 17:33:42 +0000 (17:33 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 8 Jul 2008 17:33:42 +0000 (17:33 +0000)
svn path=/trunk/; revision=1219

libempathy-gtk/empathy-contact-widget.c

index 81b8fb096355a062fb13a41c667edc4bd1c4a6fb..2e591ece37a5985b9648d57080eacd8c5a90dc08 100644 (file)
@@ -438,6 +438,10 @@ popup_avatar_menu (EmpathyContactWidget *information,
   GtkWidget *menu, *item;
   gint button, event_time;
 
+  if (information->contact == NULL ||
+      empathy_contact_get_avatar (information->contact) == NULL)
+      return;
+
   menu = gtk_menu_new ();
 
   /* Add "Save as..." entry */