From: Taehyub Kim Date: Fri, 17 Jul 2020 01:08:41 +0000 (+0900) Subject: efl_ui_image: remove the unnecessary code in efl_file_unload X-Git-Tag: submit/tizen/20200719.223823~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F46%2F238746%2F1;p=platform%2Fupstream%2Fefl.git efl_ui_image: remove the unnecessary code in efl_file_unload Summary: we don't need the image preload api call in efl_file_unload, this make the unexpected SIG_LOAD_ERROR emit, when elm_image_memfile_set() is called. @fix Reviewers: Hermet, jsuya, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12056 Change-Id: I29415b8e95ed7be0bb5e3bc8a3f185ed0e69077a --- diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c index 24ad5a8..4d4eea6 100644 --- a/src/lib/elementary/efl_ui_image.c +++ b/src/lib/elementary/efl_ui_image.c @@ -1045,14 +1045,6 @@ _efl_ui_image_efl_file_unload(Eo *obj, Efl_Ui_Image_Data *sd) _efl_ui_image_file_set_do(obj); efl_file_unload(sd->img); efl_file_unload(efl_super(obj, MY_CLASS)); - if (sd->preload_status == EFL_UI_IMAGE_PRELOAD_DISABLED) - _prev_img_del(sd); - else - { - evas_object_hide(sd->img); - sd->preload_status = EFL_UI_IMAGE_PRELOADING; - evas_object_image_preload(sd->img, EINA_FALSE); - } efl_canvas_group_change(obj); }