From 848cdc4a887e1cc529604b39b5631349ab001d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <forenjunkie@chello.at> Date: Sun, 20 May 2018 01:26:45 +0200 Subject: [PATCH] ProfileWindow: Remove redundant menu entry --- gajim/profile_window.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gajim/profile_window.py b/gajim/profile_window.py index 05edbb4ae4..16e8417d34 100644 --- a/gajim/profile_window.py +++ b/gajim/profile_window.py @@ -154,8 +154,9 @@ class ProfileWindow: """ 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 @@ class ProfileWindow: 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() -- GitLab