From 523c35c375a3e820231adb9e9e1409731e1178e3 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 2 Jan 2016 02:50:17 +0000 Subject: [PATCH] Fix roster rooms checks --- src/ui/rosterwin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c index c732bf05..dd5d886f 100644 --- a/src/ui/rosterwin.c +++ b/src/ui/rosterwin.c @@ -429,7 +429,7 @@ _rosterwin_rooms(ProfLayoutSplit *layout, gboolean newline) g_list_free(rooms); // if this group has contacts, or if we want to show empty groups - if (rooms || prefs_get_boolean(PREF_ROSTER_EMPTY)) { + if (rooms_sorted || prefs_get_boolean(PREF_ROSTER_EMPTY)) { if (newline) { win_sub_newline_lazy(layout->subwin); } @@ -441,7 +441,7 @@ _rosterwin_rooms(ProfLayoutSplit *layout, gboolean newline) } g_string_append(title_str, "Rooms"); if (prefs_get_boolean(PREF_ROSTER_COUNT)) { - g_string_append_printf(title_str, " (%d)", g_list_length(rooms)); + g_string_append_printf(title_str, " (%d)", g_list_length(rooms_sorted)); } gboolean wrap = prefs_get_boolean(PREF_ROSTER_WRAP); win_sub_print(layout->subwin, title_str->str, FALSE, wrap, 1);