From: Enlightenment S. <no-...@en...> - 2010-04-02 09:46:38
|
Log: Patch by Naruto TAKAHASHI -- checks the read permission of edje file Author: urandom Date: 2010-04-02 02:46:31 -0700 (Fri, 02 Apr 2010) New Revision: 47683 Modified: trunk/edje_viewer/src/bin/edje_viewer_main.c Modified: trunk/edje_viewer/src/bin/edje_viewer_main.c =================================================================== --- trunk/edje_viewer/src/bin/edje_viewer_main.c 2010-04-02 06:13:39 UTC (rev 47682) +++ trunk/edje_viewer/src/bin/edje_viewer_main.c 2010-04-02 09:46:31 UTC (rev 47683) @@ -53,6 +53,14 @@ return 1; } + if (!ecore_file_can_read(v->config->edje_file)) + { + ERR("Could not read Edje file\n"); + viewer_free(v); + elm_exit(); + return 1; + } + create_main_win(v); open_edje_file(v); |