empathy r1219 - trunk/libempathy-gtk



Author: xclaesse
Date: Tue Jul  8 17:33:42 2008
New Revision: 1219
URL: http://svn.gnome.org/viewvc/empathy?rev=1219&view=rev

Log:
Do not popup the Save As menu if the contact has no avatar.


Modified:
   trunk/libempathy-gtk/empathy-contact-widget.c

Modified: trunk/libempathy-gtk/empathy-contact-widget.c
==============================================================================
--- trunk/libempathy-gtk/empathy-contact-widget.c	(original)
+++ trunk/libempathy-gtk/empathy-contact-widget.c	Tue Jul  8 17:33:42 2008
@@ -438,6 +438,10 @@
   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 */



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