Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pg mr
gajim
Commits
313b913a
Commit
313b913a
authored
Jul 25, 2018
by
Philipp Hörist
Browse files
Dont get own avatar_sha from contacts
parent
cf580c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
gajim/gtk/profile.py
View file @
313b913a
...
...
@@ -156,12 +156,13 @@ def on_PHOTO_button_press_event(self, widget, event):
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment