From 038c4e4c775c05983d3d376831669c0528a6c2e3 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 8 Nov 2006 14:31:40 +0000 Subject: [PATCH] use good filename when saving avatar of a contact from info window. Fixes #2650 --- src/vcard.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vcard.py b/src/vcard.py index 46e070116..6884db68f 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -118,7 +118,8 @@ class VcardWindow: menuitem = gtk.ImageMenuItem(gtk.STOCK_SAVE_AS) menuitem.connect('activate', gtkgui_helpers.on_avatar_save_as_menuitem_activate, - self.contact.jid, self.account, self.contact.name + '.jpeg') + self.contact.jid, self.account, self.contact.get_shown_name() + + '.jpeg') menu.append(menuitem) menu.connect('selection-done', lambda w:w.destroy()) # show the menu @@ -395,7 +396,8 @@ class ZeroconfVcardWindow: menuitem = gtk.ImageMenuItem(gtk.STOCK_SAVE_AS) menuitem.connect('activate', gtkgui_helpers.on_avatar_save_as_menuitem_activate, - self.contact.jid, self.account, self.contact.name + '.jpeg') + self.contact.jid, self.account, self.contact.get_shown_name() + + '.jpeg') menu.append(menuitem) menu.connect('selection-done', lambda w:w.destroy()) # show the menu