'everything' apps: add command only once
authorHannes Janetzek <hannes.janetzek@gmail.com>
Mon, 12 Apr 2010 15:34:21 +0000 (15:34 +0000)
committerHannes Janetzek <hannes.janetzek@gmail.com>
Mon, 12 Apr 2010 15:34:21 +0000 (15:34 +0000)
SVN revision: 47960

src/modules/everything-apps/e_mod_main.c

index e8d9add..3f40e45 100644 (file)
@@ -533,7 +533,8 @@ _fetch(Evry_Plugin *plugin, const char *input)
                       EVRY_ITEM(app)->label = eina_stringshare_add(input);
                       eina_stringshare_del(app->file);
                       app->file = eina_stringshare_add(input);
-                      EVRY_PLUGIN_ITEM_APPEND(p, app);
+                      if (!eina_list_data_find(p->base.items, app))
+                        EVRY_PLUGIN_ITEM_APPEND(p, app);
 
                       ev = E_NEW(Evry_Event_Item_Changed, 1);
                       evry_item_ref(EVRY_ITEM(app));