forked from enlightenment/enlightenment
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:
parent
a918738e65
commit
382dc8e3b0
|
@ -784,10 +784,16 @@ _bar_icon_preview_show(void *data)
|
||||||
EINA_LIST_FOREACH(ic->execs, l, ex)
|
EINA_LIST_FOREACH(ic->execs, l, ex)
|
||||||
{
|
{
|
||||||
EINA_LIST_FOREACH(ex->clients, ll, ec)
|
EINA_LIST_FOREACH(ex->clients, ll, ec)
|
||||||
|
{
|
||||||
|
if (!eina_list_data_find(clients, ec))
|
||||||
clients = eina_list_append(clients, ec);
|
clients = eina_list_append(clients, ec);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
EINA_LIST_FOREACH(ic->clients, l, ec)
|
EINA_LIST_FOREACH(ic->clients, l, ec)
|
||||||
|
{
|
||||||
|
if (!eina_list_data_find(clients, ec))
|
||||||
clients = eina_list_append(clients, ec);
|
clients = eina_list_append(clients, ec);
|
||||||
|
}
|
||||||
|
|
||||||
EINA_LIST_FREE(clients, ec)
|
EINA_LIST_FREE(clients, ec)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue