[Git][gajim/gajim][master] Dont get own avatar_sha from contacts
Philipp Hörist
gitlab at dev.gajim.org
Wed Jul 25 23:17:24 CEST 2018
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
313b913a by Philipp Hörist at 2018-07-25T21:17:12Z
Dont get own avatar_sha from contacts
- - - - -
1 changed file:
- gajim/gtk/profile.py
Changes:
=====================================
gajim/gtk/profile.py
=====================================
--- a/gajim/gtk/profile.py
+++ b/gajim/gtk/profile.py
@@ -156,12 +156,13 @@ class ProfileWindow(Gtk.ApplicationWindow):
menu = Gtk.Menu()
nick = app.config.get_per('accounts', self.account, 'name')
- sha = app.contacts.get_avatar_sha(self.account, self.jid)
+ if self.avatar_sha is None:
+ return
menuitem = Gtk.MenuItem.new_with_mnemonic(_('Save _As'))
menuitem.connect(
'activate',
gtkgui_helpers.on_avatar_save_as_menuitem_activate,
- sha, nick)
+ self.avatar_sha, nick)
menu.append(menuitem)
menu.connect('selection-done', lambda w: w.destroy())
# show the menu
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/313b913ae4867eec76294f9efef7eb1c61d4a1a2
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/313b913ae4867eec76294f9efef7eb1c61d4a1a2
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20180725/e270d6e8/attachment-0001.html>
More information about the Commits
mailing list