fix bug in exec_app
authorHannes Janetzek <hannes.janetzek@gmail.com>
Thu, 13 May 2010 04:23:23 +0000 (04:23 +0000)
committerHannes Janetzek <hannes.janetzek@gmail.com>
Thu, 13 May 2010 04:23:23 +0000 (04:23 +0000)
dont make cycle-mode default

SVN revision: 48800

src/modules/everything/e_mod_main.c
src/modules/everything/evry_util.c

index d1b5ab8..67bfa98 100644 (file)
@@ -368,7 +368,7 @@ _config_init()
    evry_conf->quick_nav = 1;
    evry_conf->view_mode = VIEW_MODE_DETAIL;
    evry_conf->view_zoom = 0;
-   evry_conf->cycle_mode = 1;
+   evry_conf->cycle_mode = 0;
    evry_conf->history_sort_mode = 0;
    evry_conf->first_run = EINA_TRUE;
    IFMODCFGEND;
index b6ffe01..3ab6496 100644 (file)
@@ -592,6 +592,9 @@ evry_util_exec_app(const Evry_Item *it_app, const Evry_Item *it_file)
               {
                  EINA_LIST_FOREACH(app->desktop->mime_types, l, mime)
                    {
+                      if (!mime)
+                        continue;
+                      
                       if (!strcmp(mime, "x-directory/normal"))
                         open_folder = 1;