aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-widget.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-07-09 01:33:42 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-07-09 01:33:42 +0800
commit904a7dad7cf5a7e587c3f508d12cc6fe3df318a4 (patch)
tree599f465551d8045356b40980ac21a1896d0ba26d /libempathy-gtk/empathy-contact-widget.c
parent1b16114ce2fe6665b20c7d091a16f51b1521f5d5 (diff)
downloadgsoc2013-empathy-904a7dad7cf5a7e587c3f508d12cc6fe3df318a4.tar
gsoc2013-empathy-904a7dad7cf5a7e587c3f508d12cc6fe3df318a4.tar.gz
gsoc2013-empathy-904a7dad7cf5a7e587c3f508d12cc6fe3df318a4.tar.bz2
gsoc2013-empathy-904a7dad7cf5a7e587c3f508d12cc6fe3df318a4.tar.lz
gsoc2013-empathy-904a7dad7cf5a7e587c3f508d12cc6fe3df318a4.tar.xz
gsoc2013-empathy-904a7dad7cf5a7e587c3f508d12cc6fe3df318a4.tar.zst
gsoc2013-empathy-904a7dad7cf5a7e587c3f508d12cc6fe3df318a4.zip
Do not popup the Save As menu if the contact has no avatar.
svn path=/trunk/; revision=1219
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 81b8fb096..2e591ece3 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -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 */