rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=d839a83dc47d8be0f36b42ea54498edd2e5dfcd5

commit d839a83dc47d8be0f36b42ea54498edd2e5dfcd5
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Wed Oct 19 09:40:52 2016 +0300

    eflete: check to lock a file to open
    
    We move many actions to ecore_job and it resulted some problems.
    First problem it's a check income files, now this postponed to ecore_job
    and Eflete have undefine behavior when open or reopen project by use CLI
    arguments. This patch fix it.
    Second - problem with not finished ecore_job's if need terminate Eflete
    before it render in first time. Now have a abort if try to terminate.
    
    TODO: need manage not finished jobs
    
    Fixes T4651
    @fix
    
    Change-Id: I34433f368603243607db00b8fc48a89e5ad234d2
---
 src/bin/main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/main.c b/src/bin/main.c
index 9f408c1..62761d8 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -263,6 +263,8 @@ elm_main(int argc, char **argv)
 
              r = eina_list_data_get(config->recents);
              file = r->path;
+             if (!pm_lock_check(file))
+               goto exit;
              ecore_job_add(_open_project, NULL);
              goto run;
           }
@@ -272,6 +274,8 @@ elm_main(int argc, char **argv)
                _ERR_EXIT(_("File '%s' doesn't exists."), file);
              if (ecore_file_is_dir(file))
                _ERR_EXIT(_("'%s' is a directory."), file);
+             if (!pm_lock_check(file))
+               goto exit;
 
              if (eina_str_has_suffix(file, ".pro"))
                {
@@ -342,6 +346,7 @@ run:
         ap.path.export_edc = export_edc;
         evas_object_show(ap.win);
         elm_run();
+exit:
 #ifdef HAVE_ENVENTOR
         enventor_shutdown();
 #endif

-- 


Reply via email to