Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/main.c @ 1810:8c2651fc217a
Improve initial display when there is an error message
Chat mode is enabled automatically and the screen is refreshed.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 22 Mar 2010 21:18:29 +0100 |
parents | e73cd9377a4e |
children | e6d355e50d7a |
line wrap: on
line diff
--- a/mcabber/mcabber/main.c Sun Mar 21 18:12:34 2010 +0100 +++ b/mcabber/mcabber/main.c Mon Mar 22 21:18:29 2010 +0100 @@ -445,9 +445,14 @@ scr_show_buddy_window(); } else { /* Connection */ - xmpp_connect(); + if (xmpp_connect()) + scr_show_buddy_window(); } + // Initial drawing + scr_draw_roster(); + scr_do_update(); + { // add keypress processing source GSource *mc_source = g_source_new(&mcabber_source_funcs, sizeof(mcabber_source_t));