forked from enlightenment/efl
elementary/datetime : Fix a bug. elm_layout_content_set can delete
existing object which will be swallowed again in another part. SVN revision: 71089
This commit is contained in:
parent
d9788a6249
commit
18a24203bd
|
@ -301,7 +301,11 @@ _field_list_arrange(Evas_Object *obj)
|
|||
snprintf(buf, sizeof(buf), EDC_PART_FIELD_STR, field->location);
|
||||
|
||||
if (field->visible && field->fmt_exist)
|
||||
elm_layout_content_set(obj, buf, field->item_obj);
|
||||
{
|
||||
if (elm_layout_content_get(obj, buf))
|
||||
elm_layout_content_unset(obj, buf);
|
||||
elm_layout_content_set(obj, buf, field->item_obj);
|
||||
}
|
||||
else
|
||||
evas_object_hide(elm_layout_content_unset(obj, buf));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue