summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Vorobiov <vi.vorobiov@samsung.com>2016-04-14 20:35:42 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-04-14 20:35:42 +0900
commita69903e3b28973086b4d6bc468be366af48018ad (patch)
tree426c0d6eb7be2a473d0a78d72127dfb61a3b7fbc
parent172cfa0f0496f95cc78752c0c498a87711347df3 (diff)
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
-rw-r--r--src/modules/elementary/datetime_input_ctxpopup/datetime_input_ctxpopup.c2
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)
145 145
146 snprintf(buf, sizeof(buf), "datetime/%s", elm_object_style_get(event->obj)); 146 snprintf(buf, sizeof(buf), "datetime/%s", elm_object_style_get(event->obj));
147 147
148 if (ctx_mod->ctxpopup)
149 evas_object_del(ctx_mod->ctxpopup);
148 ctx_mod->ctxpopup = elm_ctxpopup_add(event->obj); 150 ctx_mod->ctxpopup = elm_ctxpopup_add(event->obj);
149 elm_object_style_set(ctx_mod->ctxpopup, buf); 151 elm_object_style_set(ctx_mod->ctxpopup, buf);
150 elm_ctxpopup_horizontal_set(ctx_mod->ctxpopup, EINA_TRUE); 152 elm_ctxpopup_horizontal_set(ctx_mod->ctxpopup, EINA_TRUE);