Fix a bug in /buffer close
authorMikael Berthe <mikael@lilotux.net>
Sat, 03 Feb 2007 20:45:37 +0100
changeset 1137 5752017f6e2b
parent 1136 73820cf499a4
child 1138 8ba4b1e8b42d
Fix a bug in /buffer close
mcabber/src/screen.c
--- a/mcabber/src/screen.c	Sat Feb 03 20:14:34 2007 +0100
+++ b/mcabber/src/screen.c	Sat Feb 03 20:45:37 2007 +0100
@@ -1780,6 +1780,7 @@
   if (closebuf && !isspe) {
     scr_set_chatmode(FALSE);
     g_hash_table_remove(winbufhash, CURRENT_JID);
+    currentWindow = NULL;
   }
 
   // Refresh the window