From 8959ba9759583e53e7726707208e5d38543101ec Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 13 Jul 2004 18:15:04 +0000 Subject: Fixed bug with hotlist when closing buffer --- src/gui/gui-common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/gui/gui-common.c b/src/gui/gui-common.c index ea5aa61bc..63d150bc7 100644 --- a/src/gui/gui-common.c +++ b/src/gui/gui-common.c @@ -35,6 +35,7 @@ #include "../common/weechat.h" #include "gui.h" #include "../../common/weeconfig.h" +#include "../../common/hotlist.h" #include "../irc/irc.h" @@ -355,6 +356,10 @@ gui_buffer_free (t_gui_buffer *buffer, int switch_to_another) create_new = (buffer->server || buffer->channel); + hotlist_remove_buffer (buffer); + if (hotlist_initial_buffer == buffer) + hotlist_initial_buffer = NULL; + if (switch_to_another) { for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) -- cgit v1.2.3