fix a regression bug.

we found a template won't work on enventor launch.
fix it by opening even the same input file.
This commit is contained in:
Hermet Park 2016-08-11 20:09:15 +09:00
parent 4a0df5d7b5
commit cd70d4e0fa
2 changed files with 4 additions and 3 deletions

View File

@ -331,7 +331,6 @@ void
config_input_path_set(const char *input_path)
{
config_data *cd = g_cd;
if (input_path == cd->input_path) return;
eina_stringshare_replace(&cd->input_path, input_path);
config_edj_path_update(cd);
}

View File

@ -278,6 +278,8 @@ file_mgr_main_file_set(const char *path)
realpath = ecore_file_realpath(path);
}
Eina_Bool same_file = EINA_FALSE;
//Same with previous?
Enventor_Item *main_it = file_mgr_main_item_get();
if (main_it)
@ -285,7 +287,7 @@ file_mgr_main_file_set(const char *path)
const char *prev_path = enventor_item_file_get(main_it);
if (prev_path)
{
if (!strcmp(prev_path, realpath)) return main_it;
if (!strcmp(prev_path, realpath)) same_file = EINA_TRUE;
}
}
@ -306,7 +308,7 @@ file_mgr_main_file_set(const char *path)
}
//If main file is already openend, set it sub file first.
if (main_it)
if (main_it && !same_file)
{
const char *file_path = NULL;
file_path = enventor_item_file_get(main_it);