# HG changeset patch # User Mikael Berthe # Date 1141506999 -3600 # Node ID be9f6224c3caae8338f325fcc55f805cdac31483 # Parent 4bcd48f6ca5f27ca5557c2c4ea3fceafe6610ac6 Do not show the roster when it is hidden and we're moving in the roster The currently selected buddy is now shown in the chat status line, so there is no reason to automatically reenable the roster anymore. diff -r 4bcd48f6ca5f -r be9f6224c3ca mcabber/src/screen.c --- a/mcabber/src/screen.c Sat Mar 04 22:01:42 2006 +0100 +++ b/mcabber/src/screen.c Sat Mar 04 22:16:39 2006 +0100 @@ -936,15 +936,6 @@ if (roster_hidden != old_roster_status) { if (roster_hidden) { - // The requested status is hidden. - // Let's check it makes sense... - if ((!current_buddy) || - ((buddy_gettype(BUDDATA(current_buddy)) & - (ROSTER_TYPE_USER|ROSTER_TYPE_ROOM|ROSTER_TYPE_AGENT)) == 0)) { - // We should not hide the roster. - roster_hidden = FALSE; - return; // No need to refresh, a priori. - } // Enter chat mode scr_set_chatmode(TRUE); scr_ShowBuddyWindow(); @@ -1049,9 +1040,6 @@ if (!current_buddy || !newbuddy) return; if (newbuddy == current_buddy) return; - // We're changing the selected buddy, the roster must be displayed. - scr_RosterVisibility(1); - prev_st = buddy_getstatus(BUDDATA(current_buddy), NULL); buddy_setflags(BUDDATA(current_buddy), ROSTER_FLAG_LOCK, FALSE); if (chatmode)