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 committed by Stephen 'Okra' Houston
parent a918738e65
commit 382dc8e3b0
1 changed files with 8 additions and 2 deletions

View File

@ -784,10 +784,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)
{