e17/evry/aggregator: fix check for top-level state
authorHannes Janetzek <hannes.janetzek@gmail.com>
Wed, 31 Aug 2011 10:38:10 +0000 (10:38 +0000)
committerHannes Janetzek <hannes.janetzek@gmail.com>
Wed, 31 Aug 2011 10:38:10 +0000 (10:38 +0000)
SVN revision: 63022

src/modules/everything/evry_plug_aggregator.c

index a5e1bb9..c33ec62 100644 (file)
@@ -33,7 +33,7 @@ _fetch(Evry_Plugin *plugin, const char *input)
    else
      input = NULL;
 
-   if (!sel->states->next)
+   if (eina_list_data_get(sel->states) == s)
      top_level = 1;
 
    /* get current items' context */
@@ -70,7 +70,7 @@ _fetch(Evry_Plugin *plugin, const char *input)
      }
 
    /* show non-top-level plugins as item */
-   if (top_level && (!s->trigger_active))
+   if ((top_level) && (!s->trigger_active))
      {
        EINA_LIST_FOREACH(s->plugins, l, pp)
          {