Only show avatar Save As menu if sha not None

This commit is contained in:
Daniel Brötzmann 2019-04-03 09:08:53 +02:00
parent e83a246703
commit a48610632e
1 changed files with 2 additions and 1 deletions

View File

@ -628,7 +628,8 @@ class ChatControl(ChatControlBase):
else:
sha = self.gc_contact.avatar_sha
name = self.gc_contact.get_shown_name()
gui_menu_builder.show_save_as_menu(sha, name)
if sha is not None:
gui_menu_builder.show_save_as_menu(sha, name)
return True
def on_location_eventbox_button_release_event(self, widget, event):