fix a side effect that missed a main item focus.

this is introduced from c59be9cf1b.
This commit is contained in:
Hermet Park 2016-07-07 16:49:14 +09:00
parent 64bf39cc83
commit 65a0e198da
2 changed files with 1 additions and 2 deletions

View File

@ -1177,7 +1177,7 @@ edit_view_sync_cb_set(edit_data *ed,
Eina_Stringshare *group_name =
parser_first_group_name_get(ed->pd, ed->en_edit);
cb(ed->view_sync_cb_data, NULL, 0.0, NULL, group_name);
cb(data, NULL, 0.0, NULL, group_name);
eina_stringshare_del(group_name);
}

View File

@ -833,7 +833,6 @@ enventor_object_main_item_set(Enventor_Object *obj, const char *file)
pd->main_it.pd = pd;
pd->main_it.ed = edit_init(obj, &pd->main_it);
pd->focused_it = &pd->main_it;
Eina_Bool ret = efl_file_set(obj, file, NULL);
if (!ret) return NULL;