Handle connection lost notification click

Fixes #8823
This commit is contained in:
Philipp Hörist 2018-03-15 18:37:34 +01:00
parent fa325a8fc2
commit 8f2bc1e1c6
1 changed files with 5 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class Interface:
path = gtkgui_helpers.get_icon_path('gajim-connection_lost', 48) path = gtkgui_helpers.get_icon_path('gajim-connection_lost', 48)
account = obj.conn.name account = obj.conn.name
notify.popup(_('Connection Failed'), account, account, notify.popup(_('Connection Failed'), account, account,
'', path, obj.title, obj.msg) 'connection-lost', path, obj.title, obj.msg)
@staticmethod @staticmethod
def unblock_signed_in_notifications(account): def unblock_signed_in_notifications(account):
@ -1685,6 +1685,10 @@ class Interface:
resource = app.get_resource_from_jid(fjid) resource = app.get_resource_from_jid(fjid)
jid = app.get_jid_without_resource(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'): if type_ in ('printed_gc_msg', 'printed_marked_gc_msg', 'gc_msg'):
w = self.msg_win_mgr.get_window(jid, account) w = self.msg_win_mgr.get_window(jid, account)
if jid in self.minimized_controls[account]: if jid in self.minimized_controls[account]: