jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=5ae577f5ea55e3c925b636b9d7ada4a5838d26c3

commit 5ae577f5ea55e3c925b636b9d7ada4a5838d26c3
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Tue Aug 23 23:34:39 2016 +0900

    file_mgr: Fix condition.
    
    Fix condition based on the commit,
    265626a86be7ef83be91d518bd5b3c3759853535
---
 src/bin/file_mgr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/file_mgr.c b/src/bin/file_mgr.c
index 11220c7..ba57c53 100644
--- a/src/bin/file_mgr.c
+++ b/src/bin/file_mgr.c
@@ -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;
           }
      }

-- 


Reply via email to