From bfa4a2ef1fdee2ae6ae017e8a97ac968509c3ca5 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 27 May 2019 12:52:04 +0200 Subject: Close windows on connection loss not general disc. Call `ui_close_all_wins();` only if we disconnect on purpose not when connection is lost. Otherwise users might miss messages. This partly reverts 6ac73db876c83c7068c4795b19c09ea59eb18a40. Regards https://github.com/profanity-im/profanity/issues/1083 --- src/event/client_events.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/event/client_events.c') diff --git a/src/event/client_events.c b/src/event/client_events.c index a2784d1a..1e286ce0 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -86,6 +86,7 @@ cl_ev_disconnect(void) cons_show("%s logged out successfully.", jidp->barejid); jid_destroy(jidp); + ui_close_all_wins(); ev_disconnect_cleanup(); } -- cgit 1.4.1-2-gfad0