forked from enlightenment/enlightenment
set efm_op parent tasks when creating new scan tasks for a directory
This commit is contained in:
parent
f9c16ba1ce
commit
b93c035176
|
@ -873,6 +873,7 @@ _e_fm_op_scan_idler(void *data __UNUSED__)
|
||||||
{
|
{
|
||||||
ntask = _e_fm_op_task_new();
|
ntask = _e_fm_op_task_new();
|
||||||
ntask->type = E_FM_OP_COPY_STAT_INFO;
|
ntask->type = E_FM_OP_COPY_STAT_INFO;
|
||||||
|
ntask->parent = task;
|
||||||
ntask->src.name = eina_stringshare_add(task->src.name);
|
ntask->src.name = eina_stringshare_add(task->src.name);
|
||||||
memcpy(&(ntask->src.st), &(task->src.st), sizeof(struct stat));
|
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 = _e_fm_op_task_new();
|
||||||
ntask->type = task->type;
|
ntask->type = task->type;
|
||||||
ntask->src.name = eina_stringshare_add(info->path);
|
ntask->src.name = eina_stringshare_add(info->path);
|
||||||
|
ntask->parent = task;
|
||||||
|
|
||||||
if (task->dst.name)
|
if (task->dst.name)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue