summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-04 16:21:41 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-04 16:23:01 -0700
commitd84a268a71b09d585f1672b44ade698d7babe28d (patch)
treeb04b06c48422d1121b2becbd6db67d75b9981475 /src/lib/eio
parent2951473a59021e242d8c5a4ce95e98def4ce8dda (diff)
eio: do not call efl_model_child_del at the end of build_st as that might result in the destruction of files.
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/eio_model.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index 85ad57a2ef..1191244b3a 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -299,17 +299,6 @@ _eio_model_info_build(const Eio_Model *model, Eio_Model_Data *pd)
299} 299}
300 300
301static void 301static void
302_eio_child_delete(Eio_Model *child, Eio_Model_Data *child_pd)
303{
304 Eio_Model *parent;
305
306 if (!child_pd->delete_me) return ;
307
308 parent = efl_parent_get(child);
309 efl_model_child_del(parent, child);
310}
311
312static void
313_eio_build_st_done(void *data, Eio_File *handler EINA_UNUSED, const Eina_Stat *stat) 302_eio_build_st_done(void *data, Eio_File *handler EINA_UNUSED, const Eina_Stat *stat)
314{ 303{
315 Eio_Model *model = data; 304 Eio_Model *model = data;
@@ -338,7 +327,6 @@ _eio_build_st_done(void *data, Eio_File *handler EINA_UNUSED, const Eina_Stat *s
338 efl_model_children_count_get(model); 327 efl_model_children_count_get(model);
339 } 328 }
340 329
341 _eio_child_delete(model, pd);
342 efl_unref(model); 330 efl_unref(model);
343} 331}
344 332
@@ -353,7 +341,6 @@ _eio_build_st_error(void *data, Eio_File *handler EINA_UNUSED, int error)
353 341
354 efl_model_properties_changed(model, "direct_info", "mtime", "atime", "ctime", "is_dir", "is_lnk", "size", "stat"); 342 efl_model_properties_changed(model, "direct_info", "mtime", "atime", "ctime", "is_dir", "is_lnk", "size", "stat");
355 343
356 _eio_child_delete(model, pd);
357 efl_unref(model); 344 efl_unref(model);
358} 345}
359 346