edc_navigator: fix a case that programs were not listed.

previously, program list were removed frequently.
but it should be kept for resusing.
This commit is contained in:
Hermet Park 2016-02-29 19:02:17 +09:00
parent c86aa0dac6
commit 839b481e3c
1 changed files with 2 additions and 6 deletions

View File

@ -160,14 +160,8 @@ sub_programs_remove(navi_data *nd)
{
if (!nd->programs_it) return;
Eina_List *l;
Elm_Object_Item *it;
EINA_LIST_FREE(nd->program_items, it) elm_object_item_del(it);
if (nd->program_list)
{
edje_edit_string_list_free(nd->program_list);
nd->program_list = NULL;
}
}
static void
@ -200,6 +194,8 @@ programs_reload(navi_data *nd, Elm_Object_Item *group_it)
//FIXME: Maybe we could optimize if programs list hasn't been changed.
sub_programs_remove(nd);
if (nd->program_list) edje_edit_string_list_free(nd->program_list);
//Append Parts
Evas_Object *enventor = base_enventor_get();
nd->program_list = enventor_object_programs_list_get(enventor);