summaryrefslogtreecommitdiff
path: root/src/gui/gui-hotlist.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-03-31 11:26:06 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-03-31 11:26:06 +0200
commite96639123b4e22c975a510d968d80c8258224adc (patch)
tree7a1ce94cf07b9217cebce49a9a37b40586dcfca3 /src/gui/gui-hotlist.c
parent0e561104fa18ee0ba5b38b0679279202ab2f04ae (diff)
downloadweechat-e96639123b4e22c975a510d968d80c8258224adc.zip
core: don't remove a buffer from hotlist if it's not visible (another merged buffer is zoomed)
Diffstat (limited to 'src/gui/gui-hotlist.c')
-rw-r--r--src/gui/gui-hotlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/gui-hotlist.c b/src/gui/gui-hotlist.c
index 468785566..8904e2c01 100644
--- a/src/gui/gui-hotlist.c
+++ b/src/gui/gui-hotlist.c
@@ -502,7 +502,9 @@ gui_hotlist_remove_buffer (struct t_gui_buffer *buffer)
{
next_hotlist = ptr_hotlist->next_hotlist;
- if (ptr_hotlist->buffer->number == buffer->number)
+ if ((ptr_hotlist->buffer->number == buffer->number)
+ && (!ptr_hotlist->buffer->zoomed
+ || (ptr_hotlist->buffer->active == 2)))
{
gui_hotlist_free (&gui_hotlist, &last_gui_hotlist, ptr_hotlist);
hotlist_changed = 1;