From 81d83c17576968572ab38b7ce9714c7ccf2d63ba Mon Sep 17 00:00:00 2001 From: sebastid Date: Tue, 19 Apr 2005 09:05:53 +0000 Subject: [PATCH] Make sure a deleted message is sent. SVN revision: 14244 --- src/bin/e_apps.c | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index b2d229f85..7ff4624bc 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -857,23 +857,15 @@ _e_app_subdir_rescan(E_App *app) } if (a2) { - if (a2->deleted) - { - /* Just unref it, so it will be deleted */ - e_object_unref(E_OBJECT(a2)); - } - else - { - a2->deleted = 1; - ch = calloc(1, sizeof(E_App_Change_Info)); - ch->app = a2; - ch->change = E_APP_DEL; - /* We don't need to ref this, - * it has an extra ref - e_object_ref(E_OBJECT(ch->app)); - */ - changes = evas_list_append(changes, ch); - } + a2->deleted = 1; + ch = calloc(1, sizeof(E_App_Change_Info)); + ch->app = a2; + ch->change = E_APP_DEL; + /* We don't need to ref this, + * it has an extra ref + e_object_ref(E_OBJECT(ch->app)); + */ + changes = evas_list_append(changes, ch); } } /* FIXME: We only need to tell about order changes if there are! */