multi-file: close live_view properly if the file is closed.

this commit is about stablizing mult-file functionalities.
This commit is contained in:
Hermet Park 2016-07-19 19:28:22 +09:00
parent 5179e31f39
commit 2d9fd3588f
2 changed files with 15 additions and 17 deletions

View File

@ -88,24 +88,21 @@ gl_clicked_double_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
//Case 1. main file.
eit = file_mgr_main_item_get();
if (!eit)
if (eit)
{
EINA_LOG_ERR("No main item??");
return;
}
it_file_path = enventor_item_file_get(eit);
if (!it_file_path)
{
EINA_LOG_ERR("No main item file path??");
return;
}
//Ok, This selected file is already openend, let's activate the item.
if (strlen(file->name) == strlen(it_file_path) &&
!strcmp(file->name, it_file_path))
{
file_mgr_file_focus(eit);
return;
it_file_path = enventor_item_file_get(eit);
if (!it_file_path)
{
EINA_LOG_ERR("No main item file path??");
return;
}
//Ok, This selected file is already openend, let's activate the item.
if (strlen(file->name) == strlen(it_file_path) &&
!strcmp(file->name, it_file_path))
{
file_mgr_file_focus(eit);
return;
}
}
//Case 2. sub files.

View File

@ -1084,6 +1084,7 @@ enventor_item_del(Enventor_Item *it)
if (pd->focused_it == it)
{
edj_mgr_view_switch_to(NULL);
autocomp_target_set(NULL);
pd->focused_it = NULL;
}