dnd: cosmetic fix

Signed-off-by: Eduardo Lima (Etrunko) <eblima@gmail.com>
This commit is contained in:
Eduardo Lima (Etrunko) 2015-11-23 20:13:17 -02:00
parent 9c8483ab30
commit fae6f88df7
1 changed files with 4 additions and 5 deletions

View File

@ -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);