rimmed pushed a commit to branch master.

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

commit 9850988c90c5038305f7dcfcd7ddcae1db188c8b
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Wed Nov 30 09:37:07 2016 +0200

    eflete: close project on terminate
    
    If user terminate eflete like Ctrl+C and efete has open project, then
    given project stay locked, for avoid it, we will close project on exit
    if project not close yet.
    
    @fix
    
    Change-Id: I7afa1d5bfd02618c9e0dabe58b9552494f0d2aa3
---
 src/bin/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/main.c b/src/bin/main.c
index d8d8b1f..b100aaa 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -362,6 +362,10 @@ run:
         evas_object_show(ap.win);
         elm_run();
 exit:
+   if (ap.project)
+     if (pm_project_close(ap.project) != PM_PROJECT_SUCCESS)
+       ERR("Unable to close project");
+
 #ifdef HAVE_ENVENTOR
         enventor_shutdown();
 #endif

-- 


Reply via email to