From c05b22807888731237db6bec422353ec5975270c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 16 Mar 2024 21:33:08 +0100 Subject: [PATCH] core: sort hotlist and remove buffer even while upgrading --- src/gui/gui-hotlist.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/gui-hotlist.c b/src/gui/gui-hotlist.c index 585173fc3..8e947d9a0 100644 --- a/src/gui/gui-hotlist.c +++ b/src/gui/gui-hotlist.c @@ -549,9 +549,6 @@ gui_hotlist_resort () struct t_gui_hotlist *new_hotlist, *last_new_hotlist; struct t_gui_hotlist *ptr_hotlist, *element; - if (weechat_upgrading) - return; - /* copy and resort hotlist in new linked list */ new_hotlist = NULL; last_new_hotlist = NULL; @@ -695,7 +692,7 @@ gui_hotlist_remove_buffer (struct t_gui_buffer *buffer, int hotlist_changed, hotlist_remove, buffer_to_remove; struct t_gui_hotlist *ptr_hotlist, *next_hotlist; - if (!buffer || weechat_upgrading) + if (!buffer) return; hotlist_changed = 0;