core: fix display of nicks in nicklist when they are in a group with sub-groups (closes #1079)

v2.8-utf8proc
Sébastien Helleu 2017-10-08 14:09:02 +02:00
parent bbfdec0600
commit 7a452ce8bc
2 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,7 @@ Improvements::
Bug fixes::
* core: fix display of nicks in nicklist when they are in a group with sub-groups (issue #1079)
* core, plugins: check return code of strftime function
* core: fix cast of time_t (to "long long" instead of "long") (issue #1051)
* core: call the config hook when options are renamed or removed

View File

@ -680,6 +680,13 @@ gui_nicklist_get_next_item (struct t_gui_buffer *buffer,
/* find next group by parents */
while ((ptr_group = ptr_group->parent))
{
if (ptr_group->nicks)
{
*group = NULL;
*nick = ptr_group->nicks;
return;
}
if (ptr_group->next_group)
{
*group = ptr_group->next_group;