hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a69903e3b28973086b4d6bc468be366af48018ad

commit a69903e3b28973086b4d6bc468be366af48018ad
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Thu Apr 14 20:35:42 2016 +0900

    datetime_input_ctxpopup: delete previously created ctxpopup if theme is 
broken
    
    Summary:
    Or else it will create dozens of ctxpopup's if user applied wrong or broken
    theme that do not remove ctxpopups at all (lack of programs/signals or 
whatever
    brokes ctxpopup behaviour)
    
    @fix
    
    Reviewers: cedric, reutskiy.v.v, NikaWhite, raster, an.kroitor, wc, Hermet
    
    Reviewed By: Hermet
    
    Subscribers: jpeg
    
    Differential Revision: https://phab.enlightenment.org/D3885
---
 .../elementary/datetime_input_ctxpopup/datetime_input_ctxpopup.c        | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/src/modules/elementary/datetime_input_ctxpopup/datetime_input_ctxpopup.c 
b/src/modules/elementary/datetime_input_ctxpopup/datetime_input_ctxpopup.c
index 2301807..b8fef85 100644
--- a/src/modules/elementary/datetime_input_ctxpopup/datetime_input_ctxpopup.c
+++ b/src/modules/elementary/datetime_input_ctxpopup/datetime_input_ctxpopup.c
@@ -145,6 +145,8 @@ _field_clicked_cb(void *data, const Eo_Event *event)
 
    snprintf(buf, sizeof(buf), "datetime/%s", elm_object_style_get(event->obj));
 
+   if (ctx_mod->ctxpopup)
+     evas_object_del(ctx_mod->ctxpopup);
    ctx_mod->ctxpopup = elm_ctxpopup_add(event->obj);
    elm_object_style_set(ctx_mod->ctxpopup, buf);
    elm_ctxpopup_horizontal_set(ctx_mod->ctxpopup, EINA_TRUE);

-- 


Reply via email to