diff options
author | Hannes Janetzek <hannes.janetzek@gmail.com> | 2009-06-21 21:27:33 +0000 |
---|---|---|
committer | Hannes Janetzek <hannes.janetzek@gmail.com> | 2009-06-21 21:27:33 +0000 |
commit | 4d2f2b6e20876da304bc77d40c3e78cd88c48a7e (patch) | |
tree | 2af7f5e6e3284dcf0b5b798c349109d98a0ac312 /src | |
parent | 413729a142b519c52479596b9626807ef96fda33 (diff) | |
download | enlightenment-4d2f2b6e20876da304bc77d40c3e78cd88c48a7e.tar.gz |
'everything' module: fix segv when launching command with no plugin selected
SVN revision: 41148
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/everything/evry.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/modules/everything/evry.c b/src/modules/everything/evry.c index e51f0850c7..58d55d8cb4 100644 --- a/src/modules/everything/evry.c +++ b/src/modules/everything/evry.c @@ -779,15 +779,18 @@ _evry_matches_update(void) } } - if ((s->cur_plugins) && - (!s->cur_plugin || !eina_list_data_find(s->cur_plugins, s->cur_plugin))) + if (s->cur_plugins) { - _evry_show_items(s->cur_plugins->data); - } - else if (s->cur_plugin) - { - _evry_show_items(s->cur_plugin); + if (s->cur_plugin && eina_list_data_find(s->cur_plugins, s->cur_plugin)) + { + _evry_show_items(s->cur_plugin); + } + else + { + _evry_show_items(s->cur_plugins->data); + } } + else s->cur_plugin = NULL; } static void |