diff options
author | Hermet Park <hermet@hermet.pe.kr> | 2016-01-08 20:50:01 +0900 |
---|---|---|
committer | Hermet Park <hermet@hermet.pe.kr> | 2016-01-08 20:50:01 +0900 |
commit | e52126c004843f865d50649a5be9e7d9f305ef92 (patch) | |
tree | 4c53226e35e1707766d428a886b0b05c134b4949 /src | |
parent | 060e47e169ef190d0d09fdb63ff9151d31baa4c4 (diff) | |
download | elementary-e52126c004843f865d50649a5be9e7d9f305ef92.tar.gz |
hoversel: don't activate if the items were none.
it's wierd to expand hoversel without items.
the behavior made me suprised before i analyzed it.
it looked almost a bug.
if you have any other objections, please ping me.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/elc_hoversel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c index 51625da76..175e1fb9c 100644 --- a/src/lib/elc_hoversel.c +++ b/src/lib/elc_hoversel.c @@ -421,6 +421,7 @@ _activate(Evas_Object *obj) sd->expanded = EINA_TRUE; if (elm_widget_disabled_get(obj)) return; + if (!sd->items) return; sd->hover = elm_hover_add(sd->hover_parent); elm_widget_sub_object_add(obj, sd->hover); @@ -794,7 +795,6 @@ _elm_hoversel_item_add(Eo *obj, Elm_Hoversel_Data *sd, const char *label, const snprintf(buf, sizeof(buf), "hoversel_vertical_entry/%s", elm_widget_style_get(obj)); - VIEW(item) = bt = elm_button_add(obj); elm_widget_mirrored_set(bt, elm_widget_mirrored_get(obj)); elm_object_style_set(bt, buf); |