From 8f2bc1e1c6ec0fc8c07787fc2dd5c0c6aafec2a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Thu, 15 Mar 2018 18:37:34 +0100 Subject: [PATCH] Handle connection lost notification click Fixes #8823 --- gajim/gui_interface.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index 15f2a1428..a6e911cf2 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -227,7 +227,7 @@ class Interface: path = gtkgui_helpers.get_icon_path('gajim-connection_lost', 48) account = obj.conn.name notify.popup(_('Connection Failed'), account, account, - '', path, obj.title, obj.msg) + 'connection-lost', path, obj.title, obj.msg) @staticmethod def unblock_signed_in_notifications(account): @@ -1685,6 +1685,10 @@ class Interface: resource = app.get_resource_from_jid(fjid) jid = app.get_jid_without_resource(fjid) + if type_ == 'connection-lost': + app.interface.roster.window.present() + return + if type_ in ('printed_gc_msg', 'printed_marked_gc_msg', 'gc_msg'): w = self.msg_win_mgr.get_window(jid, account) if jid in self.minimized_controls[account]: