Commit 848cdc4a authored by Philipp Hörist's avatar Philipp Hörist
Browse files

ProfileWindow: Remove redundant menu entry

parent 28192328
......@@ -154,8 +154,9 @@ def on_PHOTO_button_press_event(self, widget, event):
"""
If right-clicked, show popup
"""
pixbuf = self.xml.get_object('PHOTO_button').get_image().get_pixbuf()
if event.button == 3 and pixbuf: # right click
if event.button == 3:
# right click
menu = Gtk.Menu()
nick = app.config.get_per('accounts', self.account, 'name')
......@@ -165,10 +166,6 @@ def on_PHOTO_button_press_event(self, widget, event):
gtkgui_helpers.on_avatar_save_as_menuitem_activate,
sha, nick)
menu.append(menuitem)
# show clear
menuitem = Gtk.MenuItem.new_with_mnemonic(_('_Clear'))
menuitem.connect('activate', self.on_clear_button_clicked)
menu.append(menuitem)
menu.connect('selection-done', lambda w:w.destroy())
# show the menu
menu.show_all()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment