luncher: do not add clients twice

they can be part of the exec and of the Icon.

this fixes T4970
This commit is contained in:
Marcel Hollerbach 2017-01-10 20:33:27 +01:00
parent 45b6536a20
commit e34d1aaba9
1 changed files with 8 additions and 2 deletions

View File

@ -782,10 +782,16 @@ _bar_icon_preview_show(void *data)
EINA_LIST_FOREACH(ic->execs, l, ex)
{
EINA_LIST_FOREACH(ex->clients, ll, ec)
clients = eina_list_append(clients, ec);
{
if (!eina_list_data_find(clients, ec))
clients = eina_list_append(clients, ec);
}
}
EINA_LIST_FOREACH(ic->clients, l, ec)
clients = eina_list_append(clients, ec);
{
if (!eina_list_data_find(clients, ec))
clients = eina_list_append(clients, ec);
}
EINA_LIST_FREE(clients, ec)
{