file_mgr: Fix condition.

Fix condition based on the commit,
265626a86b
This commit is contained in:
Jaehyun Cho 2016-08-23 23:34:39 +09:00
parent c17f2f3e37
commit 5ae577f5ea
1 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ file_mgr_main_file_set(const char *path)
if (!path2) continue;
if (strcmp(realpath, path2)) continue;
file_mgr_file_del(it);
if (fmd->focused_it == it)
if (!fmd->focused_it)
replace_focus = EINA_TRUE;
break;
}
@ -337,7 +337,7 @@ file_mgr_main_file_set(const char *path)
file_path = enventor_item_file_get(main_it);
Enventor_Item *it2 = file_mgr_sub_file_add(file_path, EINA_FALSE);
file_mgr_file_del(main_it);
if (fmd->focused_it == main_it)
if (!fmd->focused_it)
fmd->focused_it = it2;
}
}