Use good filename when saving avatar of a contact without a renamed nick. Fixes #2650.

This commit is contained in:
Jean-Marie Traissard 2006-11-08 02:28:03 +00:00
parent 943338b00b
commit 2e1e5ab218
1 changed files with 1 additions and 1 deletions

View File

@ -941,7 +941,7 @@ class ChatControl(ChatControlBase):
menuitem = gtk.ImageMenuItem(gtk.STOCK_SAVE_AS)
id = 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')
self.handlers[id] = menuitem
menu.append(menuitem)
menu.show_all()