dnd: cosmetic fix

Signed-off-by: Eduardo Lima (Etrunko) <eblima@gmail.com>
v-0.4.0
Eduardo Lima (Etrunko) 7 years ago
parent 9c8483ab30
commit fae6f88df7
  1. 9
      src/bin/dnd.c

@ -155,10 +155,9 @@ _cb_recurse(void *data, Eio_File *f EINA_UNUSED, const Eina_File_Direct_Info *in
struct _recurse_data *d = data;
if (info->type == EINA_FILE_DIR)
return;
else if (!emotion_object_extension_may_play_get(info->path))
return;
d->list = eina_list_sorted_insert(d->list, EINA_COMPARE_CB(_pathcmp), _escape_parse(info->path));
if (emotion_object_extension_may_play_get(info->path))
d->list = eina_list_sorted_insert(d->list, EINA_COMPARE_CB(_pathcmp), _escape_parse(info->path));
}
static void
@ -193,9 +192,9 @@ _cb_drop(void *data, Evas_Object *o EINA_UNUSED, Elm_Selection_Data *ev)
free(esc);
continue;
}
else if (!emotion_object_extension_may_play_get(esc)) continue;
playlist = eina_list_sorted_insert(playlist, EINA_COMPARE_CB(_pathcmp), esc);
if (emotion_object_extension_may_play_get(esc))
playlist = eina_list_sorted_insert(playlist, EINA_COMPARE_CB(_pathcmp), esc);
}
free(*plist);

Loading…
Cancel
Save