forked from enlightenment/efl
diskselector: Compare correct variables.
It was comparing the same variable. Fixed coverity CID 1193236: Pointless string comparison (CONSTANT_EXPRESSION_RESULT) @fix
This commit is contained in:
parent
7fdf597440
commit
a31c16d243
|
@ -63,7 +63,7 @@ _selected_item_indicate(Elm_Diskselector_Item *item)
|
||||||
|
|
||||||
EINA_LIST_FOREACH(sd->r_items, l, it)
|
EINA_LIST_FOREACH(sd->r_items, l, it)
|
||||||
{
|
{
|
||||||
if (it->label && !strcmp(it->label, it->label))
|
if (it->label && !strcmp(it->label, item->label))
|
||||||
edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm");
|
edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm");
|
||||||
else
|
else
|
||||||
edje_object_signal_emit(VIEW(it), "elm,state,default", "elm");
|
edje_object_signal_emit(VIEW(it), "elm,state,default", "elm");
|
||||||
|
|
Loading…
Reference in New Issue