rimmed pushed a commit to branch master.

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

commit e7d7df4151d2e13b77f51ca858ce8e8af9e65917
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Mon Jun 13 17:05:20 2016 +0300

    tab_home_common: display an error message when trying to open not eflete 
.pro file
    
    Fixes T3445
---
 src/bin/ui/tab_home_common.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/ui/tab_home_common.c b/src/bin/ui/tab_home_common.c
index cfe776e..7cc5f5e 100644
--- a/src/bin/ui/tab_home_common.c
+++ b/src/bin/ui/tab_home_common.c
@@ -101,6 +101,13 @@ _tabs_progress_end(void *data, PM_Project_Result result)
         popup_want_action(_("File is locked"), _("File locked by another 
application"), NULL, NULL, BTN_OK, NULL, NULL);
         return;
      }
+   if (PM_PROJECT_ERROR == result)
+     {
+        progress_end(data, result);
+        popup_want_action(_("File opening error"), _("Unknown problem with 
file appeared.<br>"
+                                                     "(wrong file, filesystem 
error, no memory, etc)"), NULL, NULL, BTN_OK, NULL, NULL);
+        return;
+     }
    if (PM_PROJECT_SUCCESS != result) return;
 
    ap.project = pm_project_thread_project_get();

-- 


Reply via email to