diff options
-rw-r--r-- | src/gui/gui-common.c | 5 | ||||
-rw-r--r-- | weechat/src/gui/gui-common.c | 5 |
2 files changed, 10 insertions, 0 deletions
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) diff --git a/weechat/src/gui/gui-common.c b/weechat/src/gui/gui-common.c index ea5aa61bc..63d150bc7 100644 --- a/weechat/src/gui/gui-common.c +++ b/weechat/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) |