Do not propose to save avatar in profile window if it's not on HD. Fixes #2428
This commit is contained in:
parent
74471acd95
commit
38c8ba58a3
|
@ -159,6 +159,14 @@ class ProfileWindow:
|
|||
'''If right-clicked, show popup'''
|
||||
if event.button == 3 and self.avatar_encoded: # right click
|
||||
menu = gtk.Menu()
|
||||
|
||||
# Try to get pixbuf
|
||||
is_fake = False
|
||||
if account and gajim.contacts.is_pm_from_jid(account, jid):
|
||||
is_fake = True
|
||||
pixbuf = get_avatar_pixbuf_from_cache(jid, is_fake)
|
||||
|
||||
if pixbuf:
|
||||
nick = gajim.config.get_per('accounts', self.account, 'name')
|
||||
menuitem = gtk.ImageMenuItem(gtk.STOCK_SAVE_AS)
|
||||
menuitem.connect('activate',
|
||||
|
|
Loading…
Reference in New Issue