snprintf(where, 1024, "id = '%d'", id);
mf_debug("where clauses are %s", where);
- result = data_control_sql_delete(ap->provider_h, where, &req_id);
+//
+ mf_debug("path is %s and id is %d", path, id);
char *tmp = strrchr(path, '/');
if (!tmp) {
return;
}
memset(tmp, 0, sizeof(tmp));
- mf_debug("path is %s and id is %d", path, id);
if (g_strcmp0(label, mf_util_get_text(MF_LABEL_REMOVE)) == 0) {
+ result = data_control_sql_delete(ap->provider_h, where, &req_id);
mf_debug("remove button pressed");
return;
}
EINA_LIST_FOREACH(list, l, item) {
if (item) {
char where[1024] = { 0, };
- snprintf(where, 1024, "url = '%s'", item->downloaded_url);
+ snprintf(where, 1024, "id = '%d'", item->download_id);
mf_debug("where clauses are %s", where);
result =
data_control_sql_delete(ap->provider_h, where, &req_id);
Eina_List *edit_list = ap->download_edit_list;
EINA_LIST_FOREACH(file_list, complete_list, node) {
EINA_LIST_FOREACH(edit_list, editable_list, pNode) {
- if (pNode && node && pNode->downloaded_url && node->url
- && !strcmp(pNode->downloaded_url, node->url)) {
+ if (pNode && node && pNode->download_id && node->id
+ && (pNode->download_id == node->id)) {
ap->mf_FileOperation.downloaded_list =
eina_list_remove(ap->mf_FileOperation.
downloaded_list, node);
mf_debug("current mount path is : %s", real_name);
mf_genlist_create_data(&m_TempItem, real_name, data);
m_TempItem->downloaded_url = strdup(node->url);
+ m_TempItem->download_id = node->id;
it = elm_genlist_item_append(pGenlist, ap->mf_gl_style.itc,
m_TempItem, NULL,
ELM_GENLIST_ITEM_NONE,