Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
a8111619 by wurstsalat at 2021-02-14T21:39:15+01:00
Stop early when handling connection-failed in handle_event
Fixes: #10436
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
=====================================
gajim/gui_interface.py
=====================================
@@ -1185,16 +1185,16 @@ def add_event(self, account, jid, event):
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]:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a8111619c2b0d1674ebf3b8bcb21193d7b2a3718
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a8111619c2b0d1674ebf3b8bcb21193d7b2a3718
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits