multi-file: close live_view properly if the file is closed.
this commit is about stablizing mult-file functionalities.
This commit is contained in:
parent
5179e31f39
commit
2d9fd3588f
|
@ -88,24 +88,21 @@ gl_clicked_double_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||||
|
|
||||||
//Case 1. main file.
|
//Case 1. main file.
|
||||||
eit = file_mgr_main_item_get();
|
eit = file_mgr_main_item_get();
|
||||||
if (!eit)
|
if (eit)
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("No main item??");
|
it_file_path = enventor_item_file_get(eit);
|
||||||
return;
|
if (!it_file_path)
|
||||||
}
|
{
|
||||||
|
EINA_LOG_ERR("No main item file path??");
|
||||||
it_file_path = enventor_item_file_get(eit);
|
return;
|
||||||
if (!it_file_path)
|
}
|
||||||
{
|
//Ok, This selected file is already openend, let's activate the item.
|
||||||
EINA_LOG_ERR("No main item file path??");
|
if (strlen(file->name) == strlen(it_file_path) &&
|
||||||
return;
|
!strcmp(file->name, it_file_path))
|
||||||
}
|
{
|
||||||
//Ok, This selected file is already openend, let's activate the item.
|
file_mgr_file_focus(eit);
|
||||||
if (strlen(file->name) == strlen(it_file_path) &&
|
return;
|
||||||
!strcmp(file->name, it_file_path))
|
}
|
||||||
{
|
|
||||||
file_mgr_file_focus(eit);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Case 2. sub files.
|
//Case 2. sub files.
|
||||||
|
|
|
@ -1084,6 +1084,7 @@ enventor_item_del(Enventor_Item *it)
|
||||||
|
|
||||||
if (pd->focused_it == it)
|
if (pd->focused_it == it)
|
||||||
{
|
{
|
||||||
|
edj_mgr_view_switch_to(NULL);
|
||||||
autocomp_target_set(NULL);
|
autocomp_target_set(NULL);
|
||||||
pd->focused_it = NULL;
|
pd->focused_it = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue