diff --git a/src/systray.py b/src/systray.py index 5911e1821..1c2cc3109 100644 --- a/src/systray.py +++ b/src/systray.py @@ -221,10 +221,11 @@ class Systray: acc['chats'][jid].set_active_tab(jid) acc['chats'][jid].window.present() if event.button == 2: # middle click + win = self.plugin.roster.window if win.flags() & gtk.VISIBLE: - self.plugin.roster.window.hide() + win.hide() else: - self.plugin.roster.window.present() + win.present() if event.button == 3: # right click self.make_menu(event)