diff options
author | Vitalii Vorobiov <vi.vorobiov@samsung.com> | 2016-04-14 20:35:42 +0900 |
---|---|---|
committer | Hermet Park <hermet@hermet.pe.kr> | 2016-04-14 20:35:42 +0900 |
commit | a69903e3b28973086b4d6bc468be366af48018ad (patch) | |
tree | 426c0d6eb7be2a473d0a78d72127dfb61a3b7fbc /src/modules/elementary | |
parent | 172cfa0f0496f95cc78752c0c498a87711347df3 (diff) | |
download | efl-a69903e3b28973086b4d6bc468be366af48018ad.tar.gz |
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
Diffstat (limited to 'src/modules/elementary')
-rw-r--r-- | src/modules/elementary/datetime_input_ctxpopup/datetime_input_ctxpopup.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 2301807f06..b8fef85b14 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); |