Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/profile_window.py')
-rw-r--r--src/profile_window.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profile_window.py b/src/profile_window.py
index a19623397..c0705adc8 100644
--- a/src/profile_window.py
+++ b/src/profile_window.py
@@ -183,14 +183,14 @@ class ProfileWindow:
# Try to get pixbuf
pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(self.jid,
- use_local = False)
+ use_local=False)
- if pixbuf:
+ if pixbuf not in (None, 'ask'):
nick = gajim.config.get_per('accounts', self.account, 'name')
menuitem = gtk.ImageMenuItem(gtk.STOCK_SAVE_AS)
menuitem.connect('activate',
gtkgui_helpers.on_avatar_save_as_menuitem_activate,
- self.jid, None, nick + '.jpeg')
+ self.jid, self.account, nick)
menu.append(menuitem)
# show clear
menuitem = gtk.ImageMenuItem(gtk.STOCK_CLEAR)