changeset 715:be9f6224c3ca

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.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 04 Mar 2006 22:16:39 +0100
parents 4bcd48f6ca5f
children ba1137a01078
files mcabber/src/screen.c
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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)