set efm_op parent tasks when creating new scan tasks for a directory

This commit is contained in:
Mike Blumenkrantz 2013-12-19 14:55:23 -05:00
parent f9c16ba1ce
commit b93c035176
1 changed files with 2 additions and 0 deletions

View File

@ -873,6 +873,7 @@ _e_fm_op_scan_idler(void *data __UNUSED__)
{
ntask = _e_fm_op_task_new();
ntask->type = E_FM_OP_COPY_STAT_INFO;
ntask->parent = task;
ntask->src.name = eina_stringshare_add(task->src.name);
memcpy(&(ntask->src.st), &(task->src.st), sizeof(struct stat));
@ -898,6 +899,7 @@ _e_fm_op_scan_idler(void *data __UNUSED__)
ntask = _e_fm_op_task_new();
ntask->type = task->type;
ntask->src.name = eina_stringshare_add(info->path);
ntask->parent = task;
if (task->dst.name)
{