1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 02:03:13 +02:00

Fixed bug with hotlist when closing buffer

This commit is contained in:
Sebastien Helleu
2004-07-13 18:15:04 +00:00
parent b9e5c94032
commit 8959ba9759
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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)
+5
View File
@@ -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)