changeset 140:3b480b73df19

[/trunk] Changeset 152 by mikael * Buddy buffer is hidden when we leave, even if we go on a group entry.
author mikael
date Thu, 28 Apr 2005 20:11:31 +0000
parents 8d7e31d37bec
children 6533a231a65e
files mcabber/src/TODO mcabber/src/screen.c
diffstat 2 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/TODO	Thu Apr 28 19:57:45 2005 +0000
+++ b/mcabber/src/TODO	Thu Apr 28 20:11:31 2005 +0000
@@ -1,8 +1,6 @@
 
 BUGS:
 
-* Should not stay on buddy buffer when one moves to a group
-* Pending message not displayed if buddy outside Contact window
 * We should rebuild the buddy list when receiving a message from an offline
   buddy (or invisible/just hidden).
 * Presence notification is always accepted.
@@ -18,6 +16,8 @@
 * Get timestamp for offline messages
 * /connect /disconnect ?
 * Key bindings (ex: F5 <-> /group toggle)
+* Pending message not displayed if buddy outside Contact window,
+  maybe we could show it someway (maybe just a flag?).
 
 * Commands! :-)
   - /roster <hide_offline|show_offline|top|bottom>
--- a/mcabber/src/screen.c	Thu Apr 28 19:57:45 2005 +0000
+++ b/mcabber/src/screen.c	Thu Apr 28 20:11:31 2005 +0000
@@ -305,11 +305,18 @@
 void scr_ShowBuddyWindow(void)
 {
   const gchar *jid;
+
   if (!current_buddy)
+    jid = NULL;
+  else
+    jid = CURRENT_JID;
+
+  if (!jid) {
+    top_panel(chatPanel);
+    currentWindow = NULL;
     return;
-  jid = CURRENT_JID;
-  if (!jid)
-    return;
+  }
+
   scr_ShowWindow(jid);
   top_panel(inputPanel);
 }