rendered paste bodyIndex: src/bin/e_apps.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.208
diff -u -r1.208 e_apps.c
--- src/bin/e_apps.c 30 Sep 2006 10:16:23 -0000 1.208
+++ src/bin/e_apps.c 30 Sep 2006 18:10:11 -0000
@@ -321,6 +321,7 @@
struct stat st;
int stated = 0;
char buf[PATH_MAX];
+ int is_new = 0;
if (!path) return NULL;
@@ -352,8 +353,7 @@
{
/* Create it and add it to the cache. */
a = e_app_empty_new(path);
- if (a)
- _e_apps_every_app = evas_hash_direct_add(_e_apps_every_app, a->path, a);
+ is_new = 1;
}
if ((a) && (a->path))
@@ -411,6 +411,9 @@
}
else
goto error;
+
+ if (a && is_new)
+ _e_apps_every_app = evas_hash_direct_add(_e_apps_every_app, a->path, a);
return a;
@@ -2614,6 +2617,7 @@
_e_app_is_eapp(const char *path)
{
char *p;
+ int i;
if (!path)
return 0;