diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2004-07-13 18:15:04 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2004-07-13 18:15:04 +0000 |
commit | 8959ba9759583e53e7726707208e5d38543101ec (patch) | |
tree | a7fa2e406c378d4f03a8b762003aa410609e7f95 /src | |
parent | b9e5c94032bfcdee0526de867c4b3f04351a8763 (diff) | |
download | weechat-8959ba9759583e53e7726707208e5d38543101ec.zip |
Fixed bug with hotlist when closing buffer
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/gui-common.c | 5 |
1 files changed, 5 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) |