diff options
author | wurstsalat <mailtrash@posteo.de> | 2021-02-14 23:39:15 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2021-02-27 14:54:10 +0300 |
commit | 87427ae942e0158c60859a64001925620bb967c9 (patch) | |
tree | bd85e735431aa51f4a79de8ce6ba83944704f603 | |
parent | 4a4f91293fbc45ebc6e64175185f37b89596e1f3 (diff) |
Stop early when handling connection-failed in handle_event
Fixes: #10436
-rw-r--r-- | gajim/gui_interface.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index 1fefdf613..fcc91a8d8 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -1185,16 +1185,16 @@ class Interface: self.roster.select_contact(bb_jid, bb_account) def handle_event(self, account, fjid, type_): + if type_ in ('connection-lost', 'connection-failed'): + app.interface.roster.window.present() + return + w = None ctrl = None 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]: |